deque.hpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifndef BOOST_MPL_DEQUE_HPP_INCLUDED
  2. #define BOOST_MPL_DEQUE_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_DEQUE_HEADER \
  22. BOOST_PP_CAT(vector, BOOST_MPL_LIMIT_VECTOR_SIZE).hpp \
  23. /**/
  24. #else
  25. # define AUX778076_DEQUE_HEADER \
  26. BOOST_PP_CAT(vector, BOOST_MPL_LIMIT_VECTOR_SIZE)##.hpp \
  27. /**/
  28. #endif
  29. # include BOOST_PP_STRINGIZE(boost/mpl/vector/AUX778076_DEQUE_HEADER)
  30. # undef AUX778076_DEQUE_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 deque.hpp
  36. # include <boost/mpl/aux_/include_preprocessed.hpp>
  37. #else
  38. # include <boost/mpl/limits/vector.hpp>
  39. # define AUX778076_SEQUENCE_NAME deque
  40. # define AUX778076_SEQUENCE_BASE_NAME vector
  41. # define AUX778076_SEQUENCE_LIMIT BOOST_MPL_LIMIT_VECTOR_SIZE
  42. # include <boost/mpl/aux_/sequence_wrapper.hpp>
  43. #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
  44. #endif // BOOST_MPL_DEQUE_HPP_INCLUDED