...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::log::save_result_wrapper — Function object wrapper for saving the adopted function object result.
// In header: <boost/log/utility/functional/save_result.hpp> template<typename FunT, typename AssigneeT> struct save_result_wrapper { // types typedef void result_type; // construct/copy/destruct save_result_wrapper(FunT, AssigneeT &); // public member functions template<typename ArgT> result_type operator()(ArgT const &) const; };