3 #ifndef INCLUDE_NN_NLIB_SINGLETON_H_ 4 #define INCLUDE_NN_NLIB_SINGLETON_H_ 18 T* ptr =
reinterpret_cast<T*
>(&memory_[0]);
21 static T& GetInstance() {
return Instance(); }
48 #if !defined(NN_PLATFORM_CTR) 57 #endif // INCLUDE_NN_NLIB_SINGLETON_H_
#define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
Prohibits use of the copy constructor and assignment operator for the class specified by TypeName...
Singleton initialized by the object when first used.
A file that contains the configuration information for each development environment.
#define NLIB_ALIGNAS(x)
Defines alignas(x) or the equivalent.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
static T & Instance()
Gets the singleton instance of T.