MySQL 8.4.2
Source Code Documentation
Scope_guard< TLambda > Class Template Reference

#include <scope_guard.h>

Public Member Functions

 Scope_guard (const TLambda &rollback_lambda)
 
 Scope_guard (const Scope_guard< TLambda > &)=delete
 
 Scope_guard (Scope_guard< TLambda > &&moved)
 
 ~Scope_guard ()
 
void commit ()
 
void rollback ()
 

Private Attributes

bool m_committed
 
const TLambda m_rollback_lambda
 

Constructor & Destructor Documentation

◆ Scope_guard() [1/3]

template<typename TLambda >
Scope_guard< TLambda >::Scope_guard ( const TLambda &  rollback_lambda)
inline

◆ Scope_guard() [2/3]

template<typename TLambda >
Scope_guard< TLambda >::Scope_guard ( const Scope_guard< TLambda > &  )
delete

◆ Scope_guard() [3/3]

template<typename TLambda >
Scope_guard< TLambda >::Scope_guard ( Scope_guard< TLambda > &&  moved)
inline

◆ ~Scope_guard()

template<typename TLambda >
Scope_guard< TLambda >::~Scope_guard ( )
inline

Member Function Documentation

◆ commit()

template<typename TLambda >
void Scope_guard< TLambda >::commit ( )
inline

◆ rollback()

template<typename TLambda >
void Scope_guard< TLambda >::rollback ( )
inline

Member Data Documentation

◆ m_committed

template<typename TLambda >
bool Scope_guard< TLambda >::m_committed
private

◆ m_rollback_lambda

template<typename TLambda >
const TLambda Scope_guard< TLambda >::m_rollback_lambda
private

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