is_associative_element_container.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. #include <boost/mpl/and.hpp>
  11. #include <boost/mpl/or.hpp>
  12. #include <boost/mpl/not.hpp>
  13. #include <boost/icl/type_traits/is_element_container.hpp>
  14. #include <boost/icl/type_traits/is_set.hpp>
  15. namespace boost{ namespace icl
  16. {
  17. template <class Type>
  18. struct is_associative_element_container
  19. {
  20. typedef is_associative_element_container type;
  21. BOOST_STATIC_CONSTANT(bool, value =
  22. (mpl::or_<is_element_set<Type>, is_element_map<Type> >::value));
  23. };
  24. }} // namespace boost icl
  25. #endif