MySQL 8.0.39
Source Code Documentation
Variable_scope_guard< T > Class Template Reference

Template class to scope guard variables. More...

#include <scope_guard.h>

Public Member Functions

 Variable_scope_guard ()=delete
 
 Variable_scope_guard (T &var)
 
 Variable_scope_guard (const Variable_scope_guard &)=delete
 
 Variable_scope_guard (Variable_scope_guard &&)=delete
 
Variable_scope_guardoperator= (const Variable_scope_guard &)=delete
 
Variable_scope_guardoperator= (Variable_scope_guard &&)=delete
 
 ~Variable_scope_guard ()
 

Private Attributes

T & m_var_ref
 
m_var_val
 

Detailed Description

template<typename T>
class Variable_scope_guard< T >

Template class to scope guard variables.

Constructor & Destructor Documentation

◆ Variable_scope_guard() [1/4]

template<typename T >
Variable_scope_guard< T >::Variable_scope_guard ( )
delete

◆ Variable_scope_guard() [2/4]

template<typename T >
Variable_scope_guard< T >::Variable_scope_guard ( T &  var)
inline

◆ Variable_scope_guard() [3/4]

template<typename T >
Variable_scope_guard< T >::Variable_scope_guard ( const Variable_scope_guard< T > &  )
delete

◆ Variable_scope_guard() [4/4]

template<typename T >
Variable_scope_guard< T >::Variable_scope_guard ( Variable_scope_guard< T > &&  )
delete

◆ ~Variable_scope_guard()

template<typename T >
Variable_scope_guard< T >::~Variable_scope_guard ( )
inline

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
Variable_scope_guard & Variable_scope_guard< T >::operator= ( const Variable_scope_guard< T > &  )
delete

◆ operator=() [2/2]

template<typename T >
Variable_scope_guard & Variable_scope_guard< T >::operator= ( Variable_scope_guard< T > &&  )
delete

Member Data Documentation

◆ m_var_ref

template<typename T >
T& Variable_scope_guard< T >::m_var_ref
private

◆ m_var_val

template<typename T >
T Variable_scope_guard< T >::m_var_val
private

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