cds
2.3.2
|
[type-option] value cleaning More...
#include <cds/opt/value_cleaner.h>
[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:
Predefined option types: