...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::always_true — A predicate that always returns true
.
// In header: <boost/scope/scope_exit.hpp> class always_true { public: // types typedef bool result_type; // Predicate result type. // public member functions result_type operator()() const noexcept; };
This predicate can be used as the default condition function object for scope_exit
and similar scope guards.