libdcp
Public Member Functions | Private Attributes | List of all members
dcp::ScopeGuard Class Reference

Public Member Functions

template<typename F >
 ScopeGuard (F const &function)
 
 ScopeGuard (ScopeGuard &&other)
 
 ScopeGuard (ScopeGuard const &)=delete
 
ScopeGuardoperator= (ScopeGuard const &)=delete
 
void cancel ()
 

Private Attributes

std::function< void()> _function
 
bool _cancelled = false
 

Detailed Description

Definition at line 45 of file scope_guard.h.


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