1 /*-----------------------------------------------------------------------------+
2 Copyright (c) 2010-2010: Joachim Faulhaber
3 +------------------------------------------------------------------------------+
4 Distributed under the Boost Software License, Version 1.0.
5 (See accompanying file LICENCE.txt or copy at
6 http://www.boost.org/LICENSE_1_0.txt)
7 +-----------------------------------------------------------------------------*/
8 #ifndef BOOST_ICL_TYPE_TRAITS_IS_ASYMMETRIC_INTERVAL_HPP_JOFA_100327
9 #define BOOST_ICL_TYPE_TRAITS_IS_ASYMMETRIC_INTERVAL_HPP_JOFA_100327
11 #include <boost/icl/type_traits/is_interval.hpp>
13 namespace boost{ namespace icl
16 template <class Type> struct is_asymmetric_interval
18 typedef is_asymmetric_interval<Type> type;
19 BOOST_STATIC_CONSTANT(bool,
22 , has_static_bounds<Type>
23 , has_asymmetric_bounds<Type>
28 template <class Type> struct is_continuous_asymmetric
30 typedef is_continuous_asymmetric<Type> type;
31 BOOST_STATIC_CONSTANT(bool,
33 is_asymmetric_interval<Type>
34 , is_continuous<typename domain_type_of<interval_traits<Type> >::type>
39 template <class Type> struct is_discrete_asymmetric
41 typedef is_discrete_asymmetric<Type> type;
42 BOOST_STATIC_CONSTANT(bool,
44 is_asymmetric_interval<Type>
45 , mpl::not_<is_continuous<typename domain_type_of<interval_traits<Type> >::type> >
50 }} // namespace boost icl