]> git.lyx.org Git - lyx.git/blob - 3rdparty/boost/boost/fusion/container/deque/detail/cpp03/deque_keyed_values_call.hpp
Update to boost 1.72
[lyx.git] / 3rdparty / boost / boost / fusion / container / deque / detail / cpp03 / deque_keyed_values_call.hpp
1 /*=============================================================================
2     Copyright (c) 2005-2012 Joel de Guzman
3     Copyright (c) 2005-2006 Dan Marsden
4
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
11
12 #if defined(BOOST_FUSION_HAS_VARIADIC_DEQUE)
13 #error "C++03 only! This file should not have been included"
14 #endif
15
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>
20
21 #define FUSION_HASH #
22 #define FUSION_DEQUE_KEYED_VALUES_FORWARD(z, n, _)    \
23    BOOST_FUSION_FWD_ELEM(BOOST_PP_CAT(T_, n), BOOST_PP_CAT(t, n))
24
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()
29
30 #undef FUSION_DEQUE_KEYED_VALUES_FORWARD
31 #undef FUSION_HASH
32 #endif
33 #else
34
35 #define N BOOST_PP_ITERATION()
36
37         BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
38         static type construct(BOOST_PP_ENUM_BINARY_PARAMS(N, typename detail::call_param<T, >::type t))
39         {
40             return type(t0,
41                         deque_keyed_values_impl<
42                         next_index
43         #if N > 1
44                         , BOOST_PP_ENUM_SHIFTED_PARAMS(N, T)
45         #endif
46                         >::construct(BOOST_PP_ENUM_SHIFTED_PARAMS(N, t)));
47         }
48
49 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
50 FUSION_HASH if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
51 #endif
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))
57         {
58             return type(BOOST_FUSION_FWD_ELEM(T_0, t0),
59                         deque_keyed_values_impl<
60                         next_index
61         #if N > 1
62                         , BOOST_PP_ENUM_SHIFTED_PARAMS(N, T_)
63         #endif
64                         >::forward_(BOOST_PP_ENUM_SHIFTED(N, FUSION_DEQUE_KEYED_VALUES_FORWARD, _)));
65         }
66 #endif
67 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
68 FUSION_HASH endif
69 #endif
70
71 #undef N
72 #endif