source: NonGTP/Boost/boost/date_time/year_month_day.hpp @ 857

Revision 857, 1.3 KB checked in by igarcia, 19 years ago (diff)
Line 
1#ifndef YearMonthDayBase_HPP__
2#define YearMonthDayBase_HPP__
3
4/* Copyright (c) 2002,2003 CrystalClear Software, Inc.
5 * Use, modification and distribution is subject to the
6 * Boost Software License, Version 1.0. (See accompanying
7 * file LICENSE-1.0 or http://www.boost.org/LICENSE-1.0)
8 * Author: Jeff Garland
9 * $Date: 2003/11/23 03:31:27 $
10 */
11
12namespace boost {
13namespace date_time {
14
15  //! Allow rapid creation of ymd triples of different types
16  template<typename YearType, typename MonthType, typename DayType>
17  struct year_month_day_base {
18    year_month_day_base(YearType  year,
19                        MonthType month,
20                        DayType   day);
21    YearType year;
22    MonthType month;
23    DayType day;
24    typedef YearType  year_type;
25    typedef MonthType month_type;
26    typedef DayType   day_type;
27  };
28 
29 
30  //! A basic constructor
31  template<typename YearType, typename MonthType, typename DayType>
32  inline
33  year_month_day_base<YearType,MonthType,DayType>::year_month_day_base(YearType y,
34                                                                       MonthType m,
35                                                                       DayType d) :
36    year(y),
37    month(m),
38    day(d)
39  {}
40 
41} }//namespace date_time
42
43
44#endif
45
Note: See TracBrowser for help on using the repository browser.