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

Name

Description

CreateFunc

Create function used to build the singleton instance.

Member Functions

Name

Description

LeakySingleton [constructor]

Constructors

Static Member Functions

Name

Description

get

Get a reference to the singleton instance.

make_mock

make_mock overloads

Created with MrDocs