/*-----------------------------------------------------------------------------+ Copyright (c) 2010-2010: Joachim Faulhaber +------------------------------------------------------------------------------+ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENCE.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +-----------------------------------------------------------------------------*/ #ifndef BOOST_ICL_TYPE_TRAITS_IS_CONTAINER_HPP_JOFA_100828 #define BOOST_ICL_TYPE_TRAITS_IS_CONTAINER_HPP_JOFA_100828 #include #include #include #include #include #include #include #include #include namespace boost{ namespace icl { namespace detail { BOOST_MPL_HAS_XXX_TRAIT_DEF(iterator) BOOST_MPL_HAS_XXX_TRAIT_DEF(reference) } template struct is_container : mpl::bool_< detail::has_value_type::value && detail::has_iterator::value && detail::has_size_type::value && detail::has_reference::value> {}; template struct is_std_set { typedef is_std_set type; BOOST_STATIC_CONSTANT(bool, value = (mpl::and_< is_container , detail::has_key_type , boost::is_same< typename key_type_of::type , typename value_type_of::type > , mpl::not_ > >::value ) ); }; }} // namespace boost icl #endif