/usr/include/boost/icl
NameSizeModeActions
concept/-0755rm
detail/-0755rm
predicates/-0755rm
type_traits/-0755rm
associative_element_container.hpp8620644editdlrm
associative_interval_container.hpp9970644editdlrm
closed_interval.hpp42520644editdlrm
continuous_interval.hpp71480644editdlrm
discrete_interval.hpp69910644editdlrm
dynamic_interval_traits.hpp13060644editdlrm
functors.hpp164890644editdlrm
gregorian.hpp42250644editdlrm
impl_config.hpp31190644editdlrm
interval.hpp59830644editdlrm
interval_base_map.hpp566990644editdlrm
interval_base_set.hpp225010644editdlrm
interval_bounds.hpp28930644editdlrm
interval_combining_style.hpp9450644editdlrm
interval_map.hpp118720644editdlrm
interval_set.hpp81240644editdlrm
interval_traits.hpp19000644editdlrm
iterator.hpp37420644editdlrm
left_open_interval.hpp45050644editdlrm
map.hpp262820644editdlrm
open_interval.hpp44420644editdlrm
ptime.hpp43170644editdlrm
rational.hpp22190644editdlrm
right_open_interval.hpp44220644editdlrm
separate_interval_set.hpp79280644editdlrm
set.hpp8730644editdlrm
split_interval_map.hpp105930644editdlrm
split_interval_set.hpp86160644editdlrm
Edit: /usr/include/boost/icl/gregorian.hpp (4225B)
/*-----------------------------------------------------------------------------+ Copyright (c) 2008-2009: Joachim Faulhaber +------------------------------------------------------------------------------+ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENCE.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +-----------------------------------------------------------------------------*/ #ifndef BOOST_ICL_GREGORIAN_DATE_HPP_JOFA_080416 #define BOOST_ICL_GREGORIAN_DATE_HPP_JOFA_080416 #include #include #ifdef BOOST_MSVC #pragma warning(push) #pragma warning(disable:4100) // unreferenced formal parameter #pragma warning(disable:4127) // conditional expression is constant #pragma warning(disable:4244) // 'argument' : conversion from 'int' to 'unsigned short', possible loss of data #pragma warning(disable:4702) // boost\lexical_cast.hpp(1159) : warning C4702: unreachable code #pragma warning(disable:4996) // Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' #endif #include #include #include #include #include #ifdef BOOST_MSVC #pragma warning(pop) #endif #include #include #include #include namespace boost{namespace icl { template<> struct is_discrete { typedef is_discrete type; BOOST_STATIC_CONSTANT(bool, value = true); }; template<> inline boost::gregorian::date identity_element::value() { return boost::gregorian::date(boost::gregorian::min_date_time); } template<> struct identity_element { static boost::gregorian::date_duration value() { return boost::gregorian::date(boost::gregorian::min_date_time) - boost::gregorian::date(boost::gregorian::min_date_time); } }; template<> struct has_difference { typedef has_difference type; BOOST_STATIC_CONSTANT(bool, value = true); }; template<> struct difference_type_of { typedef boost::gregorian::date_duration type; }; template<> struct size_type_of { typedef boost::gregorian::date_duration type; }; // ------------------------------------------------------------------------ inline boost::gregorian::date operator ++(boost::gregorian::date& x) { return x += boost::gregorian::date::duration_type::unit(); } inline boost::gregorian::date operator --(boost::gregorian::date& x) { return x -= boost::gregorian::date::duration_type::unit(); } // ------------------------------------------------------------------------ template<> struct is_discrete { typedef is_discrete type; BOOST_STATIC_CONSTANT(bool, value = true); }; template<> struct has_difference { typedef has_difference type; BOOST_STATIC_CONSTANT(bool, value = true); }; template<> struct size_type_of { typedef boost::gregorian::date_duration type; }; inline boost::gregorian::date_duration operator ++(boost::gregorian::date_duration& x) { return x += boost::gregorian::date::duration_type::unit(); } inline boost::gregorian::date_duration operator --(boost::gregorian::date_duration& x) { return x -= boost::gregorian::date::duration_type::unit(); } // ------------------------------------------------------------------------ }} // namespace icl boost #endif