1 /*-----------------------------------------------------------------------------+
2 Copyright (c) 2008-2009: 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_HAS_SET_SEMANTICS_HPP_JOFA_100829
9 #define BOOST_ICL_TYPE_TRAITS_HAS_SET_SEMANTICS_HPP_JOFA_100829
11 #include <boost/mpl/or.hpp>
12 #include <boost/mpl/and.hpp>
13 #include <boost/icl/type_traits/is_set.hpp>
14 #include <boost/icl/type_traits/is_map.hpp>
15 #include <boost/icl/type_traits/codomain_type_of.hpp>
17 namespace boost{ namespace icl
19 template <class Type> struct has_set_semantics
21 typedef has_set_semantics<Type> type;
22 BOOST_STATIC_CONSTANT(bool,
23 value = (mpl::or_< is_set<Type>
24 , mpl::and_< is_map<Type>
26 <typename codomain_type_of<Type>::type >
31 }} // namespace boost icl