StaticInit< InitPolicy > Class Template Reference
Static initialization. More...
#include <static.h>
Detailed Description
template<typename InitPolicy>
class StaticInit< InitPolicy >
Static initialization.
Performs a static initialization using the technique to combine static member function and singleton using this technique, the process in the constructor is called once.
- Template Parameters
-
InitPolicy Controls initialization policy. If the StaticInit class is specified with ExternalPolicy
, the initialization is dedicated to the load from external source.