#include <functional>
#include <boost/preprocessor/cat.hpp>
Go to the source code of this file.
|
#define | ON_SCOPE_EXIT(...) [[maybe_unused]] const auto& BOOST_PP_CAT(scope_exit, __LINE__) = utils::scope_exit_syntax_support() << [__VA_ARGS__]() |
| Run some arbitrary code (a lambda) when the current scope exits The lambda body follows this header, terminated by a semicolon. More...
|
|
◆ ON_SCOPE_EXIT
Run some arbitrary code (a lambda) when the current scope exits The lambda body follows this header, terminated by a semicolon.
- ... Capture clause for the lambda.
Definition at line 43 of file scope_exit.hpp.