|
Celeritas 0.7.0-3+develop.835656ac1
|
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 |
Call a function when this object is destroyed (at end of scope).