Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tc::ScopeGuard Class Reference

#include <scope_guard.h>

Public Member Functions

template<class F >
 ScopeGuard (const F &f)
 
 ~ScopeGuard () noexcept(false)
 

Private Member Functions

 ScopeGuard ()=delete
 
 ScopeGuard (ScopeGuard &)=delete
 
 ScopeGuard (ScopeGuard &&)=delete
 
ScopeGuard operator= (ScopeGuard &)=delete
 
ScopeGuard operator= (ScopeGuard &&)=delete
 

Private Attributes

std::function< void()> onExit
 

Constructor & Destructor Documentation

tc::ScopeGuard::ScopeGuard ( )
privatedelete
tc::ScopeGuard::ScopeGuard ( ScopeGuard )
privatedelete
tc::ScopeGuard::ScopeGuard ( ScopeGuard &&  )
privatedelete
template<class F >
tc::ScopeGuard::ScopeGuard ( const F &  f)
inline
tc::ScopeGuard::~ScopeGuard ( )
inlinenoexcept

Member Function Documentation

ScopeGuard tc::ScopeGuard::operator= ( ScopeGuard )
privatedelete
ScopeGuard tc::ScopeGuard::operator= ( ScopeGuard &&  )
privatedelete

Member Data Documentation

std::function<void()> tc::ScopeGuard::onExit
private

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