The finally macro.
Classes | |
class | FinallyWrapper< T > |
class | FinallyFactory |
class | FinallyOnce< T > |
class | FinallyOnceFactory |
Namespaces | |
maxon | |
maxon::details | |
Macros | |
#define | finally |
#define | finally_once |
#define | finally_opt |
#define finally |
Use this to specify a code block which shall be executed when the current scope is left. If you want to execute the finally statement manually (or disable it) see finally_once.
The code block is part of a lambda expression which captures all variables by reference.
#define finally_once |
Use finally_once for a code block which shall be executed when the current scope is left or might be invoked manually (to clean up). In any case the block is invoked just once (unless it is manually disabled).
The code block is part of a lambda expression which captures all variables by reference.
#define finally_opt |