RetroArch
Public Member Functions | Private Member Functions | Private Attributes | List of all members
peg::scope_exit< EF > Struct Template Reference

#include <peglib.h>

Public Member Functions

 scope_exit (EF &&f)
 
 scope_exit (scope_exit &&rhs)
 
 ~scope_exit ()
 
void release ()
 

Private Member Functions

 scope_exit (const scope_exit &)=delete
 
void operator= (const scope_exit &)=delete
 
scope_exitoperator= (scope_exit &&)=delete
 

Private Attributes

EF exit_function
 
bool execute_on_destruction
 

Constructor & Destructor Documentation

◆ scope_exit() [1/3]

template<typename EF >
peg::scope_exit< EF >::scope_exit ( EF &&  f)
inlineexplicit

◆ scope_exit() [2/3]

template<typename EF >
peg::scope_exit< EF >::scope_exit ( scope_exit< EF > &&  rhs)
inline

◆ ~scope_exit()

template<typename EF >
peg::scope_exit< EF >::~scope_exit ( )
inline

◆ scope_exit() [3/3]

template<typename EF >
peg::scope_exit< EF >::scope_exit ( const scope_exit< EF > &  )
privatedelete

Member Function Documentation

◆ operator=() [1/2]

template<typename EF >
void peg::scope_exit< EF >::operator= ( const scope_exit< EF > &  )
privatedelete

◆ operator=() [2/2]

template<typename EF >
scope_exit& peg::scope_exit< EF >::operator= ( scope_exit< EF > &&  )
privatedelete

◆ release()

template<typename EF >
void peg::scope_exit< EF >::release ( )
inline

Member Data Documentation

◆ execute_on_destruction

template<typename EF >
bool peg::scope_exit< EF >::execute_on_destruction
private

◆ exit_function

template<typename EF >
EF peg::scope_exit< EF >::exit_function
private

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