Celeritas 0.7.0-3+develop.835656ac1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::ScopeExit< F > Class Template Reference

Call a function when this object is destroyed (at end of scope). More...

#include <ScopeExit.hh>

Public Member Functions

 ScopeExit (F &&func)
 Construct with functor.
 
 ~ScopeExit ()
 Call functor on destruction.
 
 ScopeExit (ScopeExit const &)=delete
 
ScopeExit & operator= (ScopeExit const &)=delete
 
 ScopeExit (ScopeExit &&)=delete
 
ScopeExit & operator= (ScopeExit &&)=delete
 

Detailed Description

template<class F>
class celeritas::ScopeExit< F >

Call a function when this object is destroyed (at end of scope).


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