3 #ifndef INCLUDE_NN_NLIB_SIMPLESINGLETON_H_
4 #define INCLUDE_NN_NLIB_SIMPLESINGLETON_H_
16 inline void DummyFunc()
const {}
18 static Creator creator;
29 static T& GetInstance() {
return Instance(); }
37 typename SimpleSingleton<T>::Creator SimpleSingleton<T>::creator;
41 #endif // INCLUDE_NN_NLIB_SIMPLESINGLETON_H_
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
#define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
Prohibits use of the copy constructor and assignment operator for the class specified by TypeName...
Singleton of the type for implicitly constructing an instance based on a static variable before calli...
static T & Instance()
Gets the singleton instance of T.
A file that contains the configuration information for each development environment.