1 /*=============================================================================
2 Copyright (c) 2005-2012 Joel de Guzman
3 Copyright (c) 2005-2006 Dan Marsden
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ==============================================================================*/
8 #if !defined(BOOST_PP_IS_ITERATING)
9 #if !defined(BOOST_FUSION_SEQUENCE_DEQUE_DETAIL_DEQUE_KEYED_VALUES_CALL_04122006_2211)
10 #define BOOST_FUSION_SEQUENCE_DEQUE_DETAIL_DEQUE_KEYED_VALUES_CALL_04122006_2211
12 #if defined(BOOST_FUSION_HAS_VARIADIC_DEQUE)
13 #error "C++03 only! This file should not have been included"
16 #include <boost/preprocessor/iterate.hpp>
17 #include <boost/preprocessor/repetition/enum_shifted_params.hpp>
18 #include <boost/preprocessor/repetition/enum_shifted.hpp>
19 #include <boost/preprocessor/repetition/enum_binary_params.hpp>
22 #define FUSION_DEQUE_KEYED_VALUES_FORWARD(z, n, _) \
23 BOOST_FUSION_FWD_ELEM(BOOST_PP_CAT(T_, n), BOOST_PP_CAT(t, n))
25 #define BOOST_PP_FILENAME_1 \
26 <boost/fusion/container/deque/detail/cpp03/deque_keyed_values_call.hpp>
27 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_DEQUE_SIZE)
28 #include BOOST_PP_ITERATE()
30 #undef FUSION_DEQUE_KEYED_VALUES_FORWARD
35 #define N BOOST_PP_ITERATION()
37 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
38 static type construct(BOOST_PP_ENUM_BINARY_PARAMS(N, typename detail::call_param<T, >::type t))
41 deque_keyed_values_impl<
44 , BOOST_PP_ENUM_SHIFTED_PARAMS(N, T)
46 >::construct(BOOST_PP_ENUM_SHIFTED_PARAMS(N, t)));
49 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
50 FUSION_HASH if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
52 #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \
53 (defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES))
54 template <BOOST_PP_ENUM_PARAMS(N, typename T_)>
55 BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
56 static type forward_(BOOST_PP_ENUM_BINARY_PARAMS(N, T_, && t))
58 return type(BOOST_FUSION_FWD_ELEM(T_0, t0),
59 deque_keyed_values_impl<
62 , BOOST_PP_ENUM_SHIFTED_PARAMS(N, T_)
64 >::forward_(BOOST_PP_ENUM_SHIFTED(N, FUSION_DEQUE_KEYED_VALUES_FORWARD, _)));
67 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)