PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://hadesmem.googlecode.com/
C++ Header | 40 lines | 22 code | 11 blank | 7 comment | 0 complexity | 453c65eacd95203c11fdfe29b4d1e86a 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_IS_INDEX_LIST_HPP
10#define BOOST_MULTI_INDEX_DETAIL_IS_INDEX_LIST_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/empty.hpp>
18#include <boost/mpl/is_sequence.hpp>
19
20namespace boost{
21
22namespace multi_index{
23
24namespace detail{
25
26template<typename T>
27struct is_index_list
28{
29  BOOST_STATIC_CONSTANT(bool,mpl_sequence=mpl::is_sequence<T>::value);
30  BOOST_STATIC_CONSTANT(bool,non_empty=!mpl::empty<T>::value);
31  BOOST_STATIC_CONSTANT(bool,value=mpl_sequence&&non_empty);
32};
33
34} /* namespace multi_index::detail */
35
36} /* namespace multi_index */
37
38} /* namespace boost */
39
40#endif