Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards


Class template date_itr

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 > {
  // types
  typedef date_type::duration_type duration_type;

  // construct/copy/destruct
  date_itr(date_type, int = 1);

  // private member functions
  virtual duration_type get_offset(const date_type &) const;
  virtual duration_type get_neg_offset(const date_type &) const;


date_itr public construct/copy/destruct

  1. date_itr(date_type d, int factor = 1);

date_itr private member functions

  1. virtual duration_type get_offset(const date_type & current) const;
  2. virtual duration_type get_neg_offset(const date_type & current) const;