vector10.hpp 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #if !defined(FUSION_VECTOR10_05042005_0257)
  7. #define FUSION_VECTOR10_05042005_0257
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/fusion/container/vector/detail/cpp03/vector10_fwd.hpp>
  10. #include <boost/fusion/support/sequence_base.hpp>
  11. #include <boost/fusion/support/is_sequence.hpp>
  12. #include <boost/fusion/support/detail/access.hpp>
  13. #include <boost/fusion/iterator/next.hpp>
  14. #include <boost/fusion/iterator/deref.hpp>
  15. #include <boost/fusion/sequence/intrinsic/begin.hpp>
  16. #include <boost/fusion/container/vector/detail/at_impl.hpp>
  17. #include <boost/fusion/container/vector/detail/value_at_impl.hpp>
  18. #include <boost/fusion/container/vector/detail/begin_impl.hpp>
  19. #include <boost/fusion/container/vector/detail/end_impl.hpp>
  20. #include <boost/mpl/void.hpp>
  21. #include <boost/mpl/int.hpp>
  22. #include <boost/mpl/bool.hpp>
  23. #include <boost/mpl/at.hpp>
  24. #include <boost/mpl/vector/vector10.hpp>
  25. #include <boost/type_traits/is_convertible.hpp>
  26. #include <boost/utility/enable_if.hpp>
  27. #include <boost/preprocessor/dec.hpp>
  28. #include <boost/preprocessor/iteration/iterate.hpp>
  29. #include <boost/preprocessor/repetition/enum.hpp>
  30. #include <boost/preprocessor/repetition/enum_shifted.hpp>
  31. #include <boost/preprocessor/repetition/enum_params.hpp>
  32. #include <boost/preprocessor/repetition/enum_binary_params.hpp>
  33. #include <boost/preprocessor/repetition/repeat_from_to.hpp>
  34. namespace boost { namespace fusion
  35. {
  36. struct vector_tag;
  37. struct fusion_sequence_tag;
  38. struct random_access_traversal_tag;
  39. template <typename Dummy>
  40. struct vector0 : sequence_base<vector0<Dummy> >
  41. {
  42. typedef mpl::vector0<> types;
  43. typedef vector_tag fusion_tag;
  44. typedef fusion_sequence_tag tag; // this gets picked up by MPL
  45. typedef mpl::false_ is_view;
  46. typedef random_access_traversal_tag category;
  47. typedef mpl::int_<0> size;
  48. BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
  49. vector0() BOOST_NOEXCEPT {}
  50. template<typename Sequence>
  51. BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
  52. vector0(Sequence const& /*seq*/) BOOST_NOEXCEPT
  53. {}
  54. };
  55. }}
  56. #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
  57. #include <boost/fusion/container/vector/detail/cpp03/preprocessed/vector10.hpp>
  58. #else
  59. #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
  60. #pragma wave option(preserve: 2, line: 0, output: "preprocessed/vector10.hpp")
  61. #endif
  62. /*=============================================================================
  63. Copyright (c) 2001-2011 Joel de Guzman
  64. Distributed under the Boost Software License, Version 1.0. (See accompanying
  65. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  66. This is an auto-generated file. Do not edit!
  67. ==============================================================================*/
  68. #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
  69. #pragma wave option(preserve: 1)
  70. #endif
  71. namespace boost { namespace fusion
  72. {
  73. struct vector_tag;
  74. struct fusion_sequence_tag;
  75. struct random_access_traversal_tag;
  76. #define FUSION_HASH #
  77. // expand vector1 to vector10
  78. #define BOOST_PP_FILENAME_1 <boost/fusion/container/vector/detail/cpp03/vector_n.hpp>
  79. #define BOOST_PP_ITERATION_LIMITS (1, 10)
  80. #include BOOST_PP_ITERATE()
  81. #undef FUSION_HASH
  82. }}
  83. #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
  84. #pragma wave option(output: null)
  85. #endif
  86. #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
  87. #endif