Implementation of the CreationPolicy that is used by the Singleton template.
More...
#include <utils/Singleton.h>
template<typename T>
struct mira::singleton::CreateUsingNew< T >
Implementation of the CreationPolicy that is used by the Singleton template.
This policy uses the new/delete operators for creating/destructing the singleton object.
- Note
- The class you want to create as a singleton needs a public default constructor. In case of a private constructor you need to add this struct as a friend.
◆ create()
◆ destroy()
static void destroy |
( |
T * |
p | ) |
|
|
inlinestatic |
The documentation for this struct was generated from the following file: