MIRA
Static Public Member Functions | List of all members
NoDestroyLifetime< T > Struct Template Reference

Implementation of the LifetimePolicy that is used by the Singleton template. More...

#include <utils/Singleton.h>

Static Public Member Functions

static void scheduleDestruction (T *, Private::atexit_lifetime_fn fun)
 

Detailed Description

template<typename T>
struct mira::singleton::NoDestroyLifetime< T >

Implementation of the LifetimePolicy that is used by the Singleton template.

This policy NEVER destroys the singleton object, i.e. the singletons destructor will never be called ("leaky singleton").

Member Function Documentation

◆ scheduleDestruction()

static void scheduleDestruction ( T *  ,
Private::atexit_lifetime_fn  fun 
)
inlinestatic

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