lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Stores and calls a callable object on destruction. More...
#include <scope_guard.h>
Public Member Functions | |
LEAN_INLINE | scope_annex_impl (const Callable &callable) |
Stores the given callable, to be called on destruction. | |
LEAN_INLINE | ~scope_annex_impl () |
Calls the callable stored by this guard. | |
Protected Member Functions | |
LEAN_INLINE bool | valid () const |
Gets whether this instance is still valid. |
Stores and calls a callable object on destruction.