...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::accumulators::impl::rolling_window_impl
// In header: <boost/accumulators/statistics/rolling_window.hpp> template<typename Sample> struct rolling_window_impl : public accumulator_base { // types typedef circular_buffer< Sample >::const_iterator const_iterator; typedef iterator_range< const_iterator > result_type; // construct/copy/destruct rolling_window_impl(dont_care); // public member functions template<typename Args> result_type result(Args const &) const; template<typename Archive> void serialize(Archive &, const unsigned int); };