1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #ifndef BOOST_PP_IS_ITERATING
8 #if !defined(FUSION_VECTOR_FORWARD_CTOR_07122005_1123)
9 #define FUSION_VECTOR_FORWARD_CTOR_07122005_1123
11 #define FUSION_FORWARD_CTOR_FORWARD(z, n, _) std::forward<U##n>(_##n)
13 #define BOOST_PP_FILENAME_1 \
14 <boost/fusion/container/vector/detail/vector_forward_ctor.hpp>
15 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_VECTOR_SIZE)
16 #include BOOST_PP_ITERATE()
18 #undef FUSION_FORWARD_CTOR_FORWARD
20 #else // defined(BOOST_PP_IS_ITERATING)
21 ///////////////////////////////////////////////////////////////////////////////
23 // Preprocessor vertical repetition code
25 ///////////////////////////////////////////////////////////////////////////////
27 #define M BOOST_PP_ITERATION()
29 BOOST_FUSION_GPU_ENABLED
33 vector(BOOST_PP_ENUM_BINARY_PARAMS(
34 M, typename detail::call_param<T, >::type _))
35 : vec(BOOST_PP_ENUM_PARAMS(M, _)) {}
37 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
38 FUSION_HASH if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
40 #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \
41 (defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES))
42 template <BOOST_PP_ENUM_PARAMS(M, typename U)>
43 BOOST_FUSION_GPU_ENABLED
47 vector(BOOST_PP_ENUM_BINARY_PARAMS(M, U, && _))
48 : vec(BOOST_PP_ENUM(M, FUSION_FORWARD_CTOR_FORWARD, _)) {}
50 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
55 #endif // defined(BOOST_PP_IS_ITERATING)