1 /* Copyright 2003-2005 Joaquín M López Muñoz.
2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE_1_0.txt or copy at
4 * http://www.boost.org/LICENSE_1_0.txt)
6 * See http://www.boost.org/libs/multi_index for library home page.
9 #ifndef BOOST_MULTI_INDEX_DETAIL_HAS_TAG_HPP
10 #define BOOST_MULTI_INDEX_DETAIL_HAS_TAG_HPP
12 #if defined(_MSC_VER)&&(_MSC_VER>=1200)
16 #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
17 #include <boost/mpl/contains.hpp>
21 namespace multi_index{
25 /* determines whether an index type has a given tag in its tag list */
27 template<typename Tag>
30 template<typename Index>
31 struct apply:mpl::contains<BOOST_DEDUCED_TYPENAME Index::tag_list,Tag>
36 } /* namespace multi_index::detail */
38 } /* namespace multi_index */
40 } /* namespace boost */