smgl 0.11.0
Structured Metadata Engine and Graph Objects Library
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
smgl::policy::DefaultLifetime< T > Struct Template Reference

Lifetime policy which schedules destruction using std::atexit. More...

#include <smgl/Singleton.hpp>

Static Public Member Functions

static void ScheduleDestruction (AtExitFunc destructionFn)
 
static void OnDeadReference ()
 

Detailed Description

template<typename T>
struct smgl::policy::DefaultLifetime< T >

Lifetime policy which schedules destruction using std::atexit.

Definition at line 42 of file Singleton.hpp.

Member Function Documentation

◆ OnDeadReference()

template<typename T >
static void smgl::policy::DefaultLifetime< T >::OnDeadReference ( )
inlinestatic

Handle dead reference to an object

Exceptions
std::logic_error

Definition at line 52 of file Singleton.hpp.

◆ ScheduleDestruction()

template<typename T >
static void smgl::policy::DefaultLifetime< T >::ScheduleDestruction ( AtExitFunc  destructionFn)
inlinestatic

Schedule destruction using std::atexit

Definition at line 44 of file Singleton.hpp.


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