...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::time_itr — Simple time iterator skeleton class.
// In header: <boost/date_time/time_iterator.hpp> template<typename time_type> class time_itr { public: // types typedef time_type::time_duration_type time_duration_type; // public member functions time_itr(time_type, time_duration_type); time_itr & operator++(); time_itr & operator--(); const time_type & operator*() const; const time_type * operator->() const; bool operator<(const time_type &) const; bool operator<=(const time_type &) const; bool operator!=(const time_type &) const; bool operator==(const time_type &) const; bool operator>(const time_type &) const; bool operator>=(const time_type &) const; };
time_itr
public member functionstime_itr(time_type t, time_duration_type d);
time_itr & operator++();
time_itr & operator--();
const time_type & operator*() const;
const time_type * operator->() const;
bool operator<(const time_type & t) const;
bool operator<=(const time_type & t) const;
bool operator!=(const time_type & t) const;
bool operator==(const time_type & t) const;
bool operator>(const time_type & t) const;
bool operator>=(const time_type & t) const;