File indexing completed on 2025-01-18 09:42:07
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_MULTI_INDEX_DETAIL_IS_INDEX_LIST_HPP
0010 #define BOOST_MULTI_INDEX_DETAIL_IS_INDEX_LIST_HPP
0011
0012 #if defined(_MSC_VER)
0013 #pragma once
0014 #endif
0015
0016 #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
0017 #include <boost/mpl/empty.hpp>
0018 #include <boost/mpl/is_sequence.hpp>
0019
0020 namespace boost{
0021
0022 namespace multi_index{
0023
0024 namespace detail{
0025
0026 template<typename T>
0027 struct is_index_list
0028 {
0029 BOOST_STATIC_CONSTANT(bool,mpl_sequence=mpl::is_sequence<T>::value);
0030 BOOST_STATIC_CONSTANT(bool,non_empty=!mpl::empty<T>::value);
0031 BOOST_STATIC_CONSTANT(bool,value=mpl_sequence&&non_empty);
0032 };
0033
0034 }
0035
0036 }
0037
0038 }
0039
0040 #endif