Files
core_misc/tjp/core/singleton/ThreadSpecificSingleton.h
Timothy Prepscius fa54be052a flatten 20260225
2026-02-25 12:39:24 -05:00

42 lines
859 B
C++
Executable File

// TJP COPYRIGHT HEADER
/**
* legal header
*
* ============================================================================
* TJP 10/11/01 Got rid of the constructed singleton, it was essentially
* a pointer!
*
* @author Timothy Prepscius
* @created 3/../01
*/
#pragma once
namespace timprepscius {
namespace core {
/**
* a Singleton container, whose contained instance is constructed on its
* first request
*
* T defines the class pointer type
* X defines the allocation class type
*/
template<class T, class X=T>
class ThreadSpecificSingletonNoConstruct;
/**
* a Singleton container, whose contained instance is constructed on its
* first request
*
* T defines the class pointer type
* X defines the allocation class type
*/
template<class T, class X=T>
class ThreadSpecificSingleton;
} // namespace utilities
} // namespace