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 to view this page for the latest version.
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::pointer_to_other< typename SegmentManager::void_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