Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
OnScopeExit Class Reference

Public Member Functions

 OnScopeExit (const OnScopeExit &other)=delete
 
 OnScopeExit (OnScopeExit &&other)=delete
 
template<typename T >
 OnScopeExit (T &&functionToCall)
 
 ~OnScopeExit ()
 
OnScopeExitoperator= (const OnScopeExit other)=delete
 

Private Attributes

std::function< void()> functionToCall_
 

Constructor & Destructor Documentation

◆ OnScopeExit() [1/3]

OnScopeExit::OnScopeExit ( const OnScopeExit other)
delete

◆ OnScopeExit() [2/3]

OnScopeExit::OnScopeExit ( OnScopeExit &&  other)
delete

◆ OnScopeExit() [3/3]

template<typename T >
OnScopeExit::OnScopeExit ( T &&  functionToCall)
inlineexplicit

◆ ~OnScopeExit()

OnScopeExit::~OnScopeExit ( )
inline

Member Function Documentation

◆ operator=()

OnScopeExit& OnScopeExit::operator= ( const OnScopeExit  other)
delete

Member Data Documentation

◆ functionToCall_

std::function<void ()> OnScopeExit::functionToCall_
private