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
boost::interprocess::managed_unique_ptr
// In header: <boost/interprocess/smart_ptr/unique_ptr.hpp> template<typename T, typename ManagedMemory> struct managed_unique_ptr { // types typedef unique_ptr< T, typename ManagedMemory::template deleter< T >::type > type; };
Returns the type of a unique pointer of type T with boost::interprocess::deleter deleter that can be constructed in the given managed segment type.