...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::date_time::week_functor — Functor to iterate a over weeks.
// In header: <boost/date_time/adjust_functors.hpp> template<typename date_type> class week_functor { public: // types typedef date_type::duration_type duration_type; typedef date_type::calendar_type calendar_type; // construct/copy/destruct week_functor(int); // public member functions duration_type get_offset(const date_type &) const; duration_type get_neg_offset(const date_type &) const; };