folly::LeakySingleton

A singleton whose instance is intentionally never destroyed.

Synopsis

Declared in <folly/Singleton.h>

template<
    typename T,
    typename Tag = /* implementation-defined */>
class LeakySingleton;

Type Aliases

NameDescription
CreateFunc Create function used to build the singleton instance.

Member Functions

NameDescription
LeakySingleton [constructor]Constructors

Static Member Functions

NameDescription
get Get a reference to the singleton instance.
make_mock make_mock overloads