]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/icl/include/boost/icl/type_traits/has_set_semantics.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / icl / include / boost / icl / type_traits / has_set_semantics.hpp
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
10
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>
16
17 namespace boost{ namespace icl
18 {
19 template <class Type> struct has_set_semantics
20 {
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>
25 , has_set_semantics
26 <typename codomain_type_of<Type>::type >
27 >
28 >::value));
29 };
30
31 }} // namespace boost icl
32
33 #endif
34
35