CatapultServer
v0.5.0.1 (Elephant)
|
RAII class that increments an atomic on construction and decrements it on destruction. More...
Public Member Functions | |
AtomicIncrementDecrementGuard (std::atomic< T > &value) | |
~AtomicIncrementDecrementGuard () | |
AtomicIncrementDecrementGuard (const AtomicIncrementDecrementGuard< T > &rhs)=default | |
AtomicIncrementDecrementGuard< T > & | operator= (const AtomicIncrementDecrementGuard< T > &rhs)=default |
Private Attributes | |
std::atomic< T > & | m_value |
RAII class that increments an atomic on construction and decrements it on destruction.
|
inlineexplicit |
|
inline |
|
default |
|
default |
|
private |