is_icl_container.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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_ICL_CONTAINER_HPP_JOFA_100831
  9. #define BOOST_ICL_TYPE_TRAITS_IS_ICL_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_interval_container.hpp>
  15. #include <boost/icl/type_traits/is_set.hpp>
  16. namespace boost{ namespace icl
  17. {
  18. template <class Type>
  19. struct is_icl_container
  20. {
  21. typedef is_icl_container<Type> type;
  22. BOOST_STATIC_CONSTANT(bool, value =
  23. (mpl::or_< is_element_container<Type>
  24. , is_interval_container<Type> >::value));
  25. };
  26. }} // namespace boost icl
  27. #endif