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

Creation policy that uses new to allocate an object on the stack. 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::CreateUsingNew< T >

Creation policy that uses new to allocate an object on the stack.

Definition at line 19 of file Singleton.hpp.

Member Function Documentation

◆ Create()

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

Create using call to new

Definition at line 21 of file Singleton.hpp.

◆ Destroy()

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

Destroy using delete

Definition at line 23 of file Singleton.hpp.


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