...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; // construct/copy/destruct time_itr(time_type, time_duration_type); // public member functions 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 & 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;