cds  2.3.2
cds::intrusive::opt::disposer< Type > Struct Template Reference

Item disposer option setter. More...

#include <cds/intrusive/options.h>

Detailed Description

template<typename Type>
struct cds::intrusive::opt::disposer< Type >

Item disposer option setter.

The option specifies a functor that is used for dispose removed items. The interface of Type functor is:

struct myDisposer {
void operator ()( T * val );
};

Predefined types for Type:

  • opt::v::empty_disposer - the disposer that does nothing
  • opt::v::delete_disposer - the disposer that calls operator delete

Usually, the disposer should be stateless default-constructible functor. It is called by garbage collector in deferred mode.


The documentation for this struct was generated from the following file:

cds 2.3.2 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Dec 31 2017 12:10:45 by Doxygen 1.8.13