Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
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
LimitOne & operator= (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.

Here is the caller graph for this function:

◆ ~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
Here is the call graph for this function:

Member Function Documentation

◆ operator=()

template<class T>
LimitOne & LimitOne< T >::operator= ( const LimitOne< T > & )
delete
Here is the call graph for this function:

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: