smgl 0.11.0
Structured Metadata Engine and Graph Objects Library
Loading...
Searching...
No Matches
Classes | Typedefs
smgl::policy Namespace Reference

Template policies namespace. More...

Classes

struct  CreateStatic
 Creation policy which allocates a static object. More...
 
struct  CreateUsingNew
 Creation policy that uses new to allocate an object on the stack. More...
 
class  DefaultFactoryError
 Default factory error policy. More...
 
struct  DefaultLifetime
 Lifetime policy which schedules destruction using std::atexit. More...
 
class  PhoenixLifetime
 Lifetime policy which reconstructs a destroyed singleton if reaccessed. More...
 
struct  SingleThreaded
 Threading policy for single-threaded applications. More...
 

Typedefs

using AtExitFunc = void(*)()
 Alias for a function type that can be passed to std::atexit.
 

Detailed Description

Template policies namespace.

Typedef Documentation

◆ AtExitFunc

using smgl::policy::AtExitFunc = typedef void (*)()

Alias for a function type that can be passed to std::atexit.

Definition at line 15 of file Singleton.hpp.