Boost C++ Libraries

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

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Class template date_itr

boost::date_time::date_itr — Overrides the base date iterator providing hook for functors.

Synopsis

// 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
  virtual duration_type get_offset(const date_type &) const;
  virtual duration_type get_neg_offset(const date_type &) const;
};

Description

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;

PrevUpHomeNext