...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::year_based_generator — Base class for all generators that take a year and produce a date.
// In header: <boost/date_time/date_generators.hpp> template<typename date_type> class year_based_generator { public: // types typedef date_type::calendar_type calendar_type; typedef calendar_type::year_type year_type; // public member functions year_based_generator(); virtual ~year_based_generator(); virtual date_type get_date(year_type) const = 0; virtual std::string to_string() const = 0; };