Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template year_month_day_base

boost::date_time::year_month_day_base — Allow rapid creation of ymd triples of different types.

Synopsis

// In header: <boost/date_time/year_month_day.hpp>

template<typename YearType, typename MonthType, typename DayType> 
struct year_month_day_base {
  // types
  typedef YearType  ; 
  typedef MonthType ;
  typedef DayType   ;  

  // construct/copy/destruct
  (YearType, MonthType, DayType);

  // public data members
  YearType year;
  MonthType month;
  DayType day;
};

Description

year_month_day_base public construct/copy/destruct

  1. (YearType year, MonthType month, DayType day);
    A basic constructor.

PrevUpHomeNext