proxygen
folly::DelayedDestruction::Destructor Class Reference

#include <DelayedDestruction.h>

Public Member Functions

void operator() (DelayedDestruction *dd) const
 

Detailed Description

Helper class to allow DelayedDestruction classes to be used with std::shared_ptr.

This class can be specified as the destructor argument when creating the shared_ptr, and it will destroy the guarded class properly when all shared_ptr references are released.

Definition at line 69 of file DelayedDestruction.h.

Member Function Documentation

void folly::DelayedDestruction::Destructor::operator() ( DelayedDestruction dd) const
inline

Definition at line 71 of file DelayedDestruction.h.

References folly::DelayedDestruction::destroy().

71  {
72  dd->destroy();
73  }

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