|
OpenEnroth 135c41f
|
Classes | |
| class | ScopeGuard< T > |
Macros | |
| #define | MM_AT_SCOPE_EXIT(...) auto MM_PP_CAT(guard, __LINE__) = ScopeGuard([&] { __VA_ARGS__; }) |
| #define MM_AT_SCOPE_EXIT | ( | ... | ) | auto MM_PP_CAT(guard, __LINE__) = ScopeGuard([&] { __VA_ARGS__; }) |
Runs provided statements at scope exit by creating a temporary ScopeGuard object.
Example usage: