...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_month_day_base — Allow rapid creation of ymd triples of different types.
// In header: <boost/date_time/year_month_day.hpp> template<typename YearType, typename MonthType, typename DayType> struct year_month_day_base { // types typedef YearType year_type; typedef MonthType month_type; typedef DayType day_type; // construct/copy/destruct year_month_day_base(YearType, MonthType, DayType); // public data members YearType year; MonthType month; DayType day; };