Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:40

0001 #ifndef YearMonthDayBase_HPP__
0002 #define YearMonthDayBase_HPP__
0003 
0004 /* Copyright (c) 2002,2003 CrystalClear Software, Inc.
0005  * Use, modification and distribution is subject to the 
0006  * Boost Software License, Version 1.0. (See accompanying
0007  * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
0008  * Author: Jeff Garland 
0009  * $Date$
0010  */
0011 
0012 #include <boost/date_time/compiler_config.hpp>
0013 
0014 namespace boost {
0015 namespace date_time {
0016 
0017   //! Allow rapid creation of ymd triples of different types
0018   template<typename YearType, typename MonthType, typename DayType>
0019   struct BOOST_SYMBOL_VISIBLE year_month_day_base {
0020     BOOST_CXX14_CONSTEXPR
0021     year_month_day_base(YearType  year,
0022                         MonthType month,
0023                         DayType   day);
0024 
0025     YearType year;
0026     MonthType month;
0027     DayType day;
0028     typedef YearType  year_type;
0029     typedef MonthType month_type;
0030     typedef DayType   day_type;
0031   };
0032 
0033 
0034   //! A basic constructor
0035   template<typename YearType, typename MonthType, typename DayType>
0036   inline BOOST_CXX14_CONSTEXPR
0037   year_month_day_base<YearType,MonthType,DayType>::year_month_day_base(YearType y, 
0038                                                                        MonthType m,
0039                                                                        DayType d) :
0040     year(y),
0041     month(m),
0042     day(d)
0043   {}
0044 
0045 } }//namespace date_time
0046 
0047 
0048 #endif
0049