cpp/memory/weak ptr/owner before