Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:27

0001 #if !defined(BOOST_PROTO_DONT_USE_PREPROCESSED_FILES)
0002 
0003     #include <boost/proto/detail/preprocessed/make_expr.hpp>
0004 
0005 #elif !defined(BOOST_PP_IS_ITERATING)
0006 
0007     #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES)
0008         #pragma wave option(preserve: 2, line: 0, output: "preprocessed/make_expr.hpp")
0009     #endif
0010 
0011     ///////////////////////////////////////////////////////////////////////////////
0012     /// \file make_expr.hpp
0013     /// Contains overloads of make_expr() free function.
0014     //
0015     //  Copyright 2008 Eric Niebler. Distributed under the Boost
0016     //  Software License, Version 1.0. (See accompanying file
0017     //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0018 
0019     #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES)
0020         #pragma wave option(preserve: 1)
0021     #endif
0022 
0023     #define BOOST_PP_ITERATION_PARAMS_1                                                             \
0024         (3, (2, BOOST_PROTO_MAX_ARITY, <boost/proto/detail/make_expr.hpp>))
0025     #include BOOST_PP_ITERATE()
0026 
0027     #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES)
0028         #pragma wave option(output: null)
0029     #endif
0030 
0031 #else // BOOST_PP_IS_ITERATING
0032 
0033     #define N BOOST_PP_ITERATION()
0034 
0035     /// \overload
0036     ///
0037     template<typename Tag BOOST_PP_ENUM_TRAILING_PARAMS(N, typename A)>
0038     BOOST_FORCEINLINE
0039     typename lazy_disable_if<
0040         is_domain<A0>
0041       , result_of::make_expr<
0042             Tag
0043             BOOST_PP_ENUM_TRAILING_PARAMS(N, const A)
0044         >
0045     >::type const
0046     make_expr(BOOST_PP_ENUM_BINARY_PARAMS(N, const A, &a))
0047     {
0048         return proto::detail::make_expr_<
0049             Tag
0050           , deduce_domain
0051             BOOST_PP_ENUM_TRAILING_PARAMS(N, const A)
0052         >()(BOOST_PP_ENUM_PARAMS(N, a));
0053     }
0054 
0055     /// \overload
0056     ///
0057     template<typename Tag, typename Domain BOOST_PP_ENUM_TRAILING_PARAMS(N, typename C)>
0058     BOOST_FORCEINLINE
0059     typename result_of::make_expr<
0060         Tag
0061       , Domain
0062         BOOST_PP_ENUM_TRAILING_PARAMS(N, const C)
0063     >::type const
0064     make_expr(BOOST_PP_ENUM_BINARY_PARAMS(N, const C, &c))
0065     {
0066         return proto::detail::make_expr_<
0067             Tag
0068           , Domain
0069             BOOST_PP_ENUM_TRAILING_PARAMS(N, const C)
0070         >()(BOOST_PP_ENUM_PARAMS(N, c));
0071     }
0072 
0073     #undef N
0074 
0075 #endif