annotate DEPENDENCIES/generic/include/boost/date_time/year_month_day.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 #ifndef YearMonthDayBase_HPP__
Chris@16 2 #define YearMonthDayBase_HPP__
Chris@16 3
Chris@16 4 /* Copyright (c) 2002,2003 CrystalClear Software, Inc.
Chris@16 5 * Use, modification and distribution is subject to the
Chris@16 6 * Boost Software License, Version 1.0. (See accompanying
Chris@16 7 * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
Chris@16 8 * Author: Jeff Garland
Chris@101 9 * $Date$
Chris@16 10 */
Chris@16 11
Chris@16 12 namespace boost {
Chris@16 13 namespace date_time {
Chris@16 14
Chris@16 15 //! Allow rapid creation of ymd triples of different types
Chris@16 16 template<typename YearType, typename MonthType, typename DayType>
Chris@16 17 struct year_month_day_base {
Chris@16 18 year_month_day_base(YearType year,
Chris@16 19 MonthType month,
Chris@16 20 DayType day);
Chris@16 21 YearType year;
Chris@16 22 MonthType month;
Chris@16 23 DayType day;
Chris@16 24 typedef YearType year_type;
Chris@16 25 typedef MonthType month_type;
Chris@16 26 typedef DayType day_type;
Chris@16 27 };
Chris@16 28
Chris@16 29
Chris@16 30 //! A basic constructor
Chris@16 31 template<typename YearType, typename MonthType, typename DayType>
Chris@16 32 inline
Chris@16 33 year_month_day_base<YearType,MonthType,DayType>::year_month_day_base(YearType y,
Chris@16 34 MonthType m,
Chris@16 35 DayType d) :
Chris@16 36 year(y),
Chris@16 37 month(m),
Chris@16 38 day(d)
Chris@16 39 {}
Chris@16 40
Chris@16 41 } }//namespace date_time
Chris@16 42
Chris@16 43
Chris@16 44 #endif
Chris@16 45