]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/phoenix/include/boost/phoenix/operator/detail/cpp03/mem_fun_ptr_eval_result_of.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / phoenix / include / boost / phoenix / operator / detail / cpp03 / mem_fun_ptr_eval_result_of.hpp
1 /*==============================================================================
2 Copyright (c) 2005-2010 Joel de Guzman
3 Copyright (c) 2010 Thomas Heller
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 !BOOST_PHOENIX_IS_ITERATING
9
10 #ifndef BOOST_PHOENIX_OPERATOR_DETAIL_MEM_FUN_PTR_EVAL_RESULT_OF_HPP
11 #define BOOST_PHOENIX_OPERATOR_DETAIL_MEM_FUN_PTR_EVAL_RESULT_OF_HPP
12
13 #define BOOST_PHOENIX_MEM_FUN_PTR_EVAL_RESULT_OF_CHILD(Z, N, D) \
14 typedef \
15 typename \
16 evaluator::impl< \
17 BOOST_PP_CAT(A, N) \
18 , Context \
19 , proto::empty_env \
20 >::result_type \
21 BOOST_PP_CAT(child, N); \
22 /**/
23
24 #define BOOST_PHOENIX_ITERATION_PARAMS \
25 (3, (2, BOOST_PHOENIX_LIMIT, \
26 <boost/phoenix/operator/detail/cpp03/mem_fun_ptr_eval_result_of.hpp>))
27 #include BOOST_PHOENIX_ITERATE()
28
29 #undef BOOST_PHOENIX_MEM_FUN_PTR_EVAL_RESULT_OF_CHILD
30
31 #endif
32
33 #else
34
35 template <typename Context, BOOST_PHOENIX_typename_A>
36 struct mem_fun_ptr_eval<Context, BOOST_PHOENIX_A>
37 {
38 BOOST_PP_REPEAT(
39 BOOST_PHOENIX_ITERATION
40 , BOOST_PHOENIX_MEM_FUN_PTR_EVAL_RESULT_OF_CHILD
41 , _
42 )
43
44 typedef
45 typename boost::result_of<
46 child1(
47 BOOST_PP_ENUM_SHIFTED_PARAMS(
48 BOOST_PHOENIX_ITERATION
49 , child
50 )
51 )
52 >::type
53 type;
54 };
55
56 #endif