GMP 0.3.0
Generative Metaprogramming library for C++
Loading...
Searching...
No Matches
singleton.hpp File Reference
#include <cstdlib>
#include <new>
#include <gmp/dp/lock.hpp>

Go to the source code of this file.

Classes

class  gmp::singleton< T, false >
 Default singleton specialization using a function-local static object. More...
 
class  gmp::singleton< T, true >
 Singleton specialization with dead-reference recovery support. More...
 

Namespaces

namespace  gmp
 

Macros

#define GMP_DISABLE_CONSTRUCTION(Class)
 Prevent direct public construction of a singleton-derived type.