template<typename T, template< class > class CreationPolicy = CreateUsingNew, template< class > class LifetimePolicy = DefaultLifetime, template< class, class > class ThreadingModel = ::Loki::SingleThreaded, class MutexPolicy = ::Loki::Mutex>
class Loki::SingletonHolder< T, CreationPolicy, LifetimePolicy, ThreadingModel, MutexPolicy >
Provides Singleton amenities for a type T To protect that type from spurious instantiations, you have to protect it yourself.
- Parameters:
-
| CreationPolicy | Creation policy, default: CreateUsingNew |
| LifetimePolicy | Lifetime policy, default: DefaultLifetime, |
| ThreadingModel | Threading policy, default: LOKI_DEFAULT_THREADING_NO_OBJ_LEVEL |