cds  2.3.2
cds::details::deferral_deleter< T, Alloc > Struct Template Reference

Deferral removing of the object of type T. Helper class. More...

#include <cds/details/allocator.h>

Public Types

typedef T type
 Type.
 
typedef Alloc allocator_type
 Allocator for removing.
 

Static Public Member Functions

static void free (T *p)
 Frees the object p. More...
 

Detailed Description

template<typename T, typename Alloc = CDS_DEFAULT_ALLOCATOR>
struct cds::details::deferral_deleter< T, Alloc >

Deferral removing of the object of type T. Helper class.

Member Function Documentation

◆ free()

template<typename T , typename Alloc = CDS_DEFAULT_ALLOCATOR>
static void cds::details::deferral_deleter< T, Alloc >::free ( T *  p)
inlinestatic

Frees the object p.

Caveats: this function uses temporary object of type cds::details::Allocator to free the node p. So, the node allocator should be stateless. It is standard requirement for std::allocator class objects.

Do not use this function directly.


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