]>
Commit | Line | Data |
---|---|---|
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_IS_ASSOCIATIVE_ELEMENT_CONTAINER_HPP_JOFA_100831 | |
9 | #define BOOST_ICL_TYPE_TRAITS_IS_ASSOCIATIVE_ELEMENT_CONTAINER_HPP_JOFA_100831 | |
10 | ||
11 | #include <boost/mpl/and.hpp> | |
12 | #include <boost/mpl/or.hpp> | |
13 | #include <boost/mpl/not.hpp> | |
14 | #include <boost/icl/type_traits/is_element_container.hpp> | |
15 | #include <boost/icl/type_traits/is_set.hpp> | |
16 | ||
17 | namespace boost{ namespace icl | |
18 | { | |
19 | template <class Type> | |
20 | struct is_associative_element_container | |
21 | { | |
22 | typedef is_associative_element_container type; | |
23 | BOOST_STATIC_CONSTANT(bool, value = | |
24 | (mpl::or_<is_element_set<Type>, is_element_map<Type> >::value)); | |
25 | }; | |
26 | ||
27 | ||
28 | }} // namespace boost icl | |
29 | ||
30 | #endif | |
31 | ||
32 |