rcpputils  master
C++ API providing common utilities and data structures.
Public Member Functions | List of all members
rcpputils::scope_exit< CallableT > Struct Template Referencefinal

#include <scope_exit.hpp>

Public Member Functions

 scope_exit (CallableT &&callable)
 
 scope_exit (const scope_exit &)=delete
 
 scope_exit (scope_exit &&)=default
 
scope_exitoperator= (const scope_exit &)=delete
 
scope_exitoperator= (scope_exit &&)=default
 
 ~scope_exit ()
 
void cancel ()
 

Constructor & Destructor Documentation

◆ scope_exit() [1/3]

template<typename CallableT >
rcpputils::scope_exit< CallableT >::scope_exit ( CallableT &&  callable)
inlineexplicit

◆ scope_exit() [2/3]

template<typename CallableT >
rcpputils::scope_exit< CallableT >::scope_exit ( const scope_exit< CallableT > &  )
delete

◆ scope_exit() [3/3]

template<typename CallableT >
rcpputils::scope_exit< CallableT >::scope_exit ( scope_exit< CallableT > &&  )
default

◆ ~scope_exit()

template<typename CallableT >
rcpputils::scope_exit< CallableT >::~scope_exit ( )
inline

Member Function Documentation

◆ operator=() [1/2]

template<typename CallableT >
scope_exit& rcpputils::scope_exit< CallableT >::operator= ( const scope_exit< CallableT > &  )
delete

◆ operator=() [2/2]

template<typename CallableT >
scope_exit& rcpputils::scope_exit< CallableT >::operator= ( scope_exit< CallableT > &&  )
default

◆ cancel()

template<typename CallableT >
void rcpputils::scope_exit< CallableT >::cancel ( )
inline

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