Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function template make_managed_shared_ptr

boost::interprocess::make_managed_shared_ptr

Synopsis

// In header: <boost/interprocess/smart_ptr/shared_ptr.hpp>


template<typename T, typename ManagedMemory> 
  managed_shared_ptr< T, ManagedMemory >::type 
  make_managed_shared_ptr(T * constructed_object, 
                          ManagedMemory & managed_memory, 
                          const std::nothrow_t &);

Description

Returns an instance of a shared pointer constructed with the default allocator and deleter from a pointer of type T that has been allocated in the passed managed segment. Does not throw, return null shared pointer in error.


PrevUpHomeNext