1 #ifndef _SINGLE_INSTANCE_HPP 2 #define _SINGLE_INSTANCE_HPP 4 #include <debug/MinimalCrash.hpp> 5 #include <metaprogramming/StaticMemberWithInitializator.hpp> #define MINIMAL_CRASH(...)
Initialize the minimal crasher.
#define PROVIDE_STATIC_MEMBER_WITH_INITIALIZATOR(T, NAME, VALUE, DESCRIPTION)
SingleInstance()
Constructor, checking no instance exists before.
void crashIfInstancesExists()
Check that no instance exists.
~SingleInstance()
Destructor, checking that no instance exists at the end.