]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/fusion/include/boost/fusion/container/list/detail/cpp03/list_to_cons_call.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / container / list / detail / cpp03 / list_to_cons_call.hpp
CommitLineData
7c673cae
FG
1/*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
3
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_LIST_TO_CONS_CALL_07192005_0138)
9#define FUSION_LIST_TO_CONS_CALL_07192005_0138
10
11#include <boost/preprocessor/iterate.hpp>
12#include <boost/preprocessor/repetition/enum_shifted_params.hpp>
13#include <boost/preprocessor/repetition/enum_binary_params.hpp>
14
15#define BOOST_PP_FILENAME_1 \
16 <boost/fusion/container/list/detail/cpp03/list_to_cons_call.hpp>
17#define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_LIST_SIZE)
18#include BOOST_PP_ITERATE()
19
20#endif
21#else // defined(BOOST_PP_IS_ITERATING)
22///////////////////////////////////////////////////////////////////////////////
23//
24// Preprocessor vertical repetition code
25//
26///////////////////////////////////////////////////////////////////////////////
27#define N BOOST_PP_ITERATION()
28
29 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
30 static type
31 call(BOOST_PP_ENUM_BINARY_PARAMS(
32 N, typename detail::call_param<T, >::type arg))
33 {
34 return type(arg0
35#if N > 1
36 , tail_list_to_cons::call(BOOST_PP_ENUM_SHIFTED_PARAMS(N, arg)));
37#else
38 );
39#endif
40 }
41
42#undef N
43#endif // defined(BOOST_PP_IS_ITERATING)
44