PageRenderTime 13ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Src/Dependencies/Boost/boost/multi_index/detail/has_tag.hpp

http://hadesmem.googlecode.com/
C++ Header | 42 lines | 22 code | 12 blank | 8 comment | 0 complexity | 4394b573a9880868e7edf51b43e7e645 MD5 | raw file
 1/* Copyright 2003-2008 Joaquin M Lopez Munoz.
 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)
 5 *
 6 * See http://www.boost.org/libs/multi_index for library home page.
 7 */
 8
 9#ifndef BOOST_MULTI_INDEX_DETAIL_HAS_TAG_HPP
10#define BOOST_MULTI_INDEX_DETAIL_HAS_TAG_HPP
11
12#if defined(_MSC_VER)&&(_MSC_VER>=1200)
13#pragma once
14#endif
15
16#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
17#include <boost/mpl/contains.hpp>
18
19namespace boost{
20
21namespace multi_index{
22
23namespace detail{
24
25/* determines whether an index type has a given tag in its tag list */
26
27template<typename Tag>
28struct has_tag
29{
30  template<typename Index>
31  struct apply:mpl::contains<BOOST_DEDUCED_TYPENAME Index::tag_list,Tag>
32  {
33  }; 
34};
35
36} /* namespace multi_index::detail */
37
38} /* namespace multi_index */
39
40} /* namespace boost */
41
42#endif