Chris@101: /* Copyright 2003-2013 Joaquin M Lopez Munoz. Chris@16: * Distributed under the Boost Software License, Version 1.0. Chris@16: * (See accompanying file LICENSE_1_0.txt or copy at Chris@16: * http://www.boost.org/LICENSE_1_0.txt) Chris@16: * Chris@16: * See http://www.boost.org/libs/multi_index for library home page. Chris@16: */ Chris@16: Chris@16: #ifndef BOOST_MULTI_INDEX_INDEXED_BY_HPP Chris@16: #define BOOST_MULTI_INDEX_INDEXED_BY_HPP Chris@16: Chris@101: #if defined(_MSC_VER) Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: #include /* keep it first to prevent nasty warns in MSVC */ Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: /* An alias to mpl::vector used to hide MPL from the user. Chris@16: * indexed_by contains the index specifiers for instantiation Chris@16: * of a multi_index_container. Chris@16: */ Chris@16: Chris@16: /* This user_definable macro limits the number of elements of an index list; Chris@16: * useful for shortening resulting symbol names (MSVC++ 6.0, for instance, Chris@16: * has problems coping with very long symbol names.) Chris@16: */ Chris@16: Chris@16: #if !defined(BOOST_MULTI_INDEX_LIMIT_INDEXED_BY_SIZE) Chris@16: #define BOOST_MULTI_INDEX_LIMIT_INDEXED_BY_SIZE BOOST_MPL_LIMIT_VECTOR_SIZE Chris@16: #endif Chris@16: Chris@16: #if BOOST_MULTI_INDEX_LIMIT_INDEXED_BY_SIZE Chris@16: struct indexed_by: Chris@16: mpl::vector Chris@16: { Chris@16: }; Chris@16: Chris@16: } /* namespace multi_index */ Chris@16: Chris@16: } /* namespace boost */ Chris@16: Chris@16: #undef BOOST_MULTI_INDEX_INDEXED_BY_TEMPLATE_PARM Chris@16: #undef BOOST_MULTI_INDEX_INDEXED_BY_SIZE Chris@16: Chris@16: #endif