cds  2.3.2
cds::opt::value_cleaner< Type > Struct Template Reference

[type-option] value cleaning More...

#include <cds/opt/value_cleaner.h>

Detailed Description

template<typename Type>
struct cds::opt::value_cleaner< Type >

[type-option] value cleaning

The cleaner is a functor called when an item is removed from a container. Note, the cleaner should not delete (deallocate) the value val passed in. However, if the value_type type is a structure that contains dynamically allocated field(s), the cleaning functor may deallocate it and initialize to default value (usually, nullptr).

The interface for type value_type is:

struct myCleaner {
void operator ()( value_type& val )
{
...
// code to cleanup val
}
}

Predefined option types:


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:51 by Doxygen 1.8.13