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::CreateStatic< T > Struct Template Reference

Creation policy which allocates a static object. More...

#include <smgl/Singleton.hpp>

Static Public Member Functions

static T * Create ()
 
static void Destroy (T *obj)
 

Detailed Description

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

Creation policy which allocates a static object.

Definition at line 28 of file Singleton.hpp.

Member Function Documentation

◆ Create()

template<typename T >
static T * smgl::policy::CreateStatic< T >::Create ( )
inlinestatic

Create static instance with aligned buffer

Definition at line 30 of file Singleton.hpp.

◆ Destroy()

template<typename T >
static void smgl::policy::CreateStatic< T >::Destroy ( T *  obj)
inlinestatic

Destroy using object's destructor

Definition at line 37 of file Singleton.hpp.


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