Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/date_time/year_month_day.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +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 |