16 #ifndef INCLUDE_NN_NLIB_SIMPLESINGLETON_H_ 17 #define INCLUDE_NN_NLIB_SIMPLESINGLETON_H_ 29 inline void DummyFunc()
const {}
31 static Creator creator;
42 static T& GetInstance() {
return Instance(); }
54 #endif // INCLUDE_NN_NLIB_SIMPLESINGLETON_H_ #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.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.