...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::last_value — Evaluate an InputIterator sequence and return the last value in the sequence.
// In header: <boost/last_value.hpp> template<typename T> class last_value { public: // types typedef T result_type; // invocation template<typename InputIterator> result_type operator()(InputIterator, InputIterator) const; };