...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::scope::make_scope_exit — Creates a scope guard with a given action function object.
// In header: <boost/scope/scope_exit.hpp> template<typename F> scope_exit< typename std::decay< F >::type > make_scope_exit(F && func, bool active = true);
Effects: Constructs a scope guard as if by calling
.scope_exit
< std::decay_t< F > >(std::forward< F >(func), active)
Parameters: |
|