proxygen
folly::hazptr_deleter< T, D > Class Template Reference

#include <Hazptr-fwd.h>

Inheritance diagram for folly::hazptr_deleter< T, D >:
folly::hazptr_obj_base< T, Atom, D > folly::hazptr_obj_base_linked< T, Atom, D >

Public Member Functions

void set_deleter (D d={})
 
void delete_obj (T *p)
 

Private Attributes

D deleter_
 

Detailed Description

template<typename T, typename D>
class folly::hazptr_deleter< T, D >

hazptr_deleter

hazptr_deleter

For empty base optimization.

Definition at line 59 of file Hazptr-fwd.h.

Member Function Documentation

template<typename T, typename D>
void folly::hazptr_deleter< T, D >::delete_obj ( T p)
inline

Definition at line 204 of file HazptrObj.h.

204  {
205  deleter_(p);
206  }
template<typename T, typename D>
void folly::hazptr_deleter< T, D >::set_deleter ( D  d = {})
inline

Definition at line 200 of file HazptrObj.h.

200  {}) {
201  deleter_ = std::move(d);
202  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Data Documentation

template<typename T, typename D>
D folly::hazptr_deleter< T, D >::deleter_
private

Definition at line 197 of file HazptrObj.h.


The documentation for this class was generated from the following files: