...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--() ; time_type operator*() ; time_type * operator->() ; bool operator<(const time_type &) ; bool operator<=(const time_type &) ; bool operator!=(const time_type &) ; bool operator==(const time_type &) ; bool operator>(const time_type &) ; bool operator>=(const time_type &) ; };
time_itr
public member functionstime_itr & operator++() ;
time_itr & operator--() ;
time_type operator*() ;
time_type * operator->() ;
bool operator<(const time_type & t) ;
bool operator<=(const time_type & t) ;
bool operator!=(const time_type & t) ;
bool operator==(const time_type & t) ;
bool operator>(const time_type & t) ;
bool operator>=(const time_type & t) ;