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

Class template deleter

boost::interprocess::deleter

Synopsis

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

template<typename T, typename SegmentManager> 
class deleter {
public:
  // types
  typedef boost::intrusive::pointer_traits< typename SegmentManager::void_pointer >::template rebind_pointer< T >::type pointer;

  // construct/copy/destruct
  deleter(segment_manager_pointer);

  // public member functions
  void operator()(const pointer &);
};

Description

A deleter that uses the segment manager's destroy_ptr function to destroy the passed pointer resource.

This deleter is used

deleter public construct/copy/destruct

  1. deleter(segment_manager_pointer pmngr);

deleter public member functions

  1. void operator()(const pointer & p);

PrevUpHomeNext