Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2014. The current version is 1.90.0.
Scope exits allow to execute arbitrary code when the enclosing scope exits.
BOOST_SCOPE_EXIT(capture_list) BOOST_SCOPE_EXIT_TPL(capture_list) BOOST_SCOPE_EXIT_ID(id, capture_list) BOOST_SCOPE_EXIT_ID_TPL(id, capture_list) BOOST_SCOPE_EXIT_ALL(capture_list) BOOST_SCOPE_EXIT_ALL_ID(id, capture_list) BOOST_SCOPE_EXIT_END BOOST_SCOPE_EXIT_END_ID(id) BOOST_SCOPE_EXIT_CONFIG_USE_LAMBDAS