boost::interprocess::make_managed_weak_ptr
// In header: <boost/interprocess/smart_ptr/weak_ptr.hpp> template<typename T, typename ManagedMemory> managed_weak_ptr< ( constructed_object, managed_memory);
Returns an instance of a weak pointer constructed with the default allocator and deleter from a pointer of type T that has been allocated in the passed managed segment