...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::date_itr — Overrides the base date iterator providing hook for functors.
// In header: <boost/date_time/date_iterator.hpp> template<typename offset_functor, typename date_type> class date_itr : public boost::date_time::date_itr_base< date_type > { public: // types typedef date_type::duration_type duration_type; // construct/copy/destruct date_itr(date_type, int = 1); // private member functions duration_type get_offset(const date_type &) const; duration_type get_neg_offset(const date_type &) const; };