folly::DelayedDestruction::Destructor

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

Synopsis

Declared in <folly/io/async/DelayedDestruction.h>

class Destructor;

Description

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.

Member Functions

NameDescription
operator() Requests destruction of the guarded object.