]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/proto/include/boost/proto/context/detail/null_eval.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / proto / include / boost / proto / context / detail / null_eval.hpp
1 #if !defined(BOOST_PROTO_DONT_USE_PREPROCESSED_FILES)
2
3 #include <boost/proto/context/detail/preprocessed/null_eval.hpp>
4
5 #elif !defined(BOOST_PP_IS_ITERATING)
6
7 #define BOOST_PROTO_EVAL_N(Z, N, DATA) \
8 proto::eval(proto::child_c<N>(expr), ctx); \
9 /**/
10
11 #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES)
12 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/null_eval.hpp")
13 #endif
14
15 ///////////////////////////////////////////////////////////////////////////////
16 /// \file null_eval.hpp
17 /// Contains specializations of the null_eval\<\> class template.
18 //
19 // Copyright 2008 Eric Niebler. Distributed under the Boost
20 // Software License, Version 1.0. (See accompanying file
21 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
22
23 #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES)
24 #pragma wave option(preserve: 1)
25 #endif
26
27 #define BOOST_PP_ITERATION_PARAMS_1 \
28 (3, (1, BOOST_PROTO_MAX_ARITY, <boost/proto/context/detail/null_eval.hpp>))
29 #include BOOST_PP_ITERATE()
30
31 #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES)
32 #pragma wave option(output: null)
33 #endif
34
35 #undef BOOST_PROTO_EVAL_N
36
37 #else
38
39 #define N BOOST_PP_ITERATION()
40
41 template<typename Expr, typename Context>
42 struct null_eval<Expr, Context, N>
43 {
44 typedef void result_type;
45
46 void operator ()(Expr &expr, Context &ctx) const
47 {
48 BOOST_PP_REPEAT(N, BOOST_PROTO_EVAL_N, ~)
49 }
50 };
51
52 #undef N
53
54 #endif