/
usr
/
include
/
boost
/
icl
/
/usr/include/boost/icl
mkdir
upload
Name
Size
Mode
Actions
concept/
-
0755
rm
detail/
-
0755
rm
predicates/
-
0755
rm
type_traits/
-
0755
rm
associative_element_container.hpp
862
0644
edit
dl
rm
associative_interval_container.hpp
997
0644
edit
dl
rm
closed_interval.hpp
4252
0644
edit
dl
rm
continuous_interval.hpp
7148
0644
edit
dl
rm
discrete_interval.hpp
6991
0644
edit
dl
rm
dynamic_interval_traits.hpp
1306
0644
edit
dl
rm
functors.hpp
16489
0644
edit
dl
rm
gregorian.hpp
4225
0644
edit
dl
rm
impl_config.hpp
3119
0644
edit
dl
rm
interval.hpp
5983
0644
edit
dl
rm
interval_base_map.hpp
56699
0644
edit
dl
rm
interval_base_set.hpp
22501
0644
edit
dl
rm
interval_bounds.hpp
2893
0644
edit
dl
rm
interval_combining_style.hpp
945
0644
edit
dl
rm
interval_map.hpp
11872
0644
edit
dl
rm
interval_set.hpp
8124
0644
edit
dl
rm
interval_traits.hpp
1900
0644
edit
dl
rm
iterator.hpp
3742
0644
edit
dl
rm
left_open_interval.hpp
4505
0644
edit
dl
rm
map.hpp
26282
0644
edit
dl
rm
open_interval.hpp
4442
0644
edit
dl
rm
ptime.hpp
4317
0644
edit
dl
rm
rational.hpp
2219
0644
edit
dl
rm
right_open_interval.hpp
4422
0644
edit
dl
rm
separate_interval_set.hpp
7928
0644
edit
dl
rm
set.hpp
873
0644
edit
dl
rm
split_interval_map.hpp
10593
0644
edit
dl
rm
split_interval_set.hpp
8616
0644
edit
dl
rm
Edit:
/usr/include/boost/icl/ptime.hpp
(4317B)
/*-----------------------------------------------------------------------------+ 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) +-----------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------ itl_ptime provides adapter code for boost::posix_time::ptime. It implements incrementation (++) decrementation (--) and a neutral element w.r.t. addition (identity_element()). ------------------------------------------------------------------------------*/ #ifndef BOOST_ICL_PTIME_HPP_JOFA_080416 #define BOOST_ICL_PTIME_HPP_JOFA_080416 #include <boost/icl/detail/boost_config.hpp> #include <boost/detail/workaround.hpp> #ifdef BOOST_MSVC #pragma warning(push) #pragma warning(disable:4100) // boost/date_time/time.hpp(80) : warning C4100: 'as_offset' : 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 <stdio.h> #include <string> #include <sstream> #include <iostream> #include <boost/date_time/posix_time/posix_time.hpp> #ifdef BOOST_MSVC #pragma warning(pop) #endif #include <boost/icl/type_traits/identity_element.hpp> #include <boost/icl/type_traits/difference_type_of.hpp> #include <boost/icl/type_traits/size_type_of.hpp> #include <boost/icl/type_traits/is_discrete.hpp> namespace boost{namespace icl { template<> struct is_discrete<boost::posix_time::ptime> { typedef is_discrete type; BOOST_STATIC_CONSTANT(bool, value = true); }; template<> inline boost::posix_time::ptime identity_element<boost::posix_time::ptime>::value() { return boost::posix_time::ptime(boost::posix_time::min_date_time); } template<> struct has_difference<boost::posix_time::ptime> { typedef has_difference type; BOOST_STATIC_CONSTANT(bool, value = true); }; template<> struct difference_type_of<boost::posix_time::ptime> { typedef boost::posix_time::time_duration type; }; template<> struct size_type_of<boost::posix_time::ptime> { typedef boost::posix_time::time_duration type; }; // ------------------------------------------------------------------------ inline boost::posix_time::ptime operator ++(boost::posix_time::ptime& x) { return x += boost::posix_time::ptime::time_duration_type::unit(); } inline boost::posix_time::ptime operator --(boost::posix_time::ptime& x) { return x -= boost::posix_time::ptime::time_duration_type::unit(); } // ------------------------------------------------------------------------ template<> struct is_discrete<boost::posix_time::time_duration> { typedef is_discrete type; BOOST_STATIC_CONSTANT(bool, value = true); }; template<> struct has_difference<boost::posix_time::time_duration> { typedef has_difference type; BOOST_STATIC_CONSTANT(bool, value = true); }; template<> struct size_type_of<boost::posix_time::time_duration> { typedef boost::posix_time::time_duration type; }; inline boost::posix_time::time_duration operator ++(boost::posix_time::time_duration& x) { return x += boost::posix_time::ptime::time_duration_type::unit(); } inline boost::posix_time::time_duration operator --(boost::posix_time::time_duration& x) { return x -= boost::posix_time::ptime::time_duration_type::unit(); } }} // namespace icl boost #endif
Save
cmd:
run