vector.hpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef BOOST_MPL_VECTOR_HPP_INCLUDED
  2. #define BOOST_MPL_VECTOR_HPP_INCLUDED
  3. // Copyright Aleksey Gurtovoy 2000-2004
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/mpl for documentation.
  10. // $Id$
  11. // $Date$
  12. // $Revision$
  13. #if !defined(BOOST_MPL_PREPROCESSING_MODE)
  14. # include <boost/mpl/limits/vector.hpp>
  15. # include <boost/mpl/aux_/na.hpp>
  16. # include <boost/mpl/aux_/config/preprocessor.hpp>
  17. # include <boost/preprocessor/inc.hpp>
  18. # include <boost/preprocessor/cat.hpp>
  19. # include <boost/preprocessor/stringize.hpp>
  20. #if !defined(BOOST_NEEDS_TOKEN_PASTING_OP_FOR_TOKENS_JUXTAPOSING)
  21. # define AUX778076_VECTOR_HEADER \
  22. BOOST_PP_CAT(vector, BOOST_MPL_LIMIT_VECTOR_SIZE).hpp \
  23. /**/
  24. #else
  25. # define AUX778076_VECTOR_HEADER \
  26. BOOST_PP_CAT(vector, BOOST_MPL_LIMIT_VECTOR_SIZE)##.hpp \
  27. /**/
  28. #endif
  29. # include BOOST_PP_STRINGIZE(boost/mpl/vector/AUX778076_VECTOR_HEADER)
  30. # undef AUX778076_VECTOR_HEADER
  31. #endif
  32. #include <boost/mpl/aux_/config/use_preprocessed.hpp>
  33. #if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
  34. && !defined(BOOST_MPL_PREPROCESSING_MODE)
  35. # define BOOST_MPL_PREPROCESSED_HEADER vector.hpp
  36. # include <boost/mpl/aux_/include_preprocessed.hpp>
  37. #else
  38. # include <boost/mpl/limits/vector.hpp>
  39. # define AUX778076_SEQUENCE_NAME vector
  40. # define AUX778076_SEQUENCE_LIMIT BOOST_MPL_LIMIT_VECTOR_SIZE
  41. # include <boost/mpl/aux_/sequence_wrapper.hpp>
  42. #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
  43. #endif // BOOST_MPL_VECTOR_HPP_INCLUDED