Bitcoin Core 31.99.0
P2P Digital Currency
Public Member Functions | Static Private Attributes | List of all members
LimitOne< T > Class Template Reference

CRTP Helper to limit a class to at most one at a time. More...

#include <time.h>

Public Member Functions

 LimitOne ()
 
 ~LimitOne ()
 
 LimitOne (const LimitOne &)=delete
 
LimitOneoperator= (const LimitOne &)=delete
 

Static Private Attributes

static bool g_T_available {true}
 

Detailed Description

template<class T>
class LimitOne< T >

CRTP Helper to limit a class to at most one at a time.

Definition at line 13 of file time.h.

Constructor & Destructor Documentation

◆ LimitOne() [1/2]

template<class T >
LimitOne< T >::LimitOne ( )
inline

Definition at line 16 of file time.h.

◆ ~LimitOne()

template<class T >
LimitOne< T >::~LimitOne ( )
inline

Definition at line 17 of file time.h.

◆ LimitOne() [2/2]

template<class T >
LimitOne< T >::LimitOne ( const LimitOne< T > &  )
delete

Member Function Documentation

◆ operator=()

template<class T >
LimitOne & LimitOne< T >::operator= ( const LimitOne< T > &  )
delete

Member Data Documentation

◆ g_T_available

template<class T >
bool LimitOne< T >::g_T_available {true}
inlinestaticprivate

Definition at line 22 of file time.h.


The documentation for this class was generated from the following file: