annotate DEPENDENCIES/generic/include/boost/phoenix/core/argument.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 /*==============================================================================
Chris@16 2 Copyright (c) 2001-2010 Joel de Guzman
Chris@16 3 Copyright (c) 2010 Eric Niebler
Chris@16 4 Copyright (c) 2010-2011 Thomas Heller
Chris@16 5
Chris@16 6 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 8 ==============================================================================*/
Chris@16 9 #ifndef BOOST_PHOENIX_CORE_ARGUMENT_HPP
Chris@16 10 #define BOOST_PHOENIX_CORE_ARGUMENT_HPP
Chris@16 11
Chris@16 12 #include <boost/phoenix/core/limits.hpp>
Chris@16 13 #include <boost/phoenix/core/actor.hpp>
Chris@16 14 #include <boost/phoenix/core/expression.hpp>
Chris@16 15 #include <boost/phoenix/core/terminal.hpp>
Chris@16 16 #include <boost/mpl/int.hpp>
Chris@16 17
Chris@16 18 namespace boost { namespace phoenix
Chris@16 19 {
Chris@16 20 ////////////////////////////////////////////////////////////////////////////
Chris@16 21 //
Chris@16 22 // argument
Chris@16 23 //
Chris@16 24 // function for evaluating argument placeholders like: _1
Chris@16 25 //
Chris@16 26 ////////////////////////////////////////////////////////////////////////////
Chris@16 27
Chris@16 28 template <int I>
Chris@16 29 struct argument
Chris@16 30 //: mpl::int_<I>
Chris@16 31 {
Chris@16 32 typedef typename mpl::int_<I>::value_type value_type;
Chris@16 33 static const value_type value = mpl::int_<I>::value;
Chris@16 34
Chris@16 35 bool operator==(argument) const
Chris@16 36 {
Chris@16 37 return true;
Chris@16 38 }
Chris@16 39
Chris@16 40 template <int I2>
Chris@16 41 bool operator==(argument<I2>) const
Chris@16 42 {
Chris@16 43 return false;
Chris@16 44 }
Chris@16 45 };
Chris@16 46 }}
Chris@16 47
Chris@16 48 namespace boost {
Chris@16 49 template <int I>
Chris@16 50 struct is_placeholder<phoenix::argument<I> >
Chris@16 51 : mpl::int_<I>
Chris@16 52 {};
Chris@16 53 }
Chris@16 54
Chris@16 55 namespace boost { namespace phoenix
Chris@16 56 {
Chris@16 57 namespace expression
Chris@16 58 {
Chris@16 59 template <int I>
Chris@16 60 struct argument
Chris@16 61 : expression::terminal<phoenix::argument<I> >
Chris@16 62 {
Chris@16 63 typedef typename expression::terminal<phoenix::argument<I> >::type type;
Chris@16 64 static const type make()
Chris@16 65 {
Chris@16 66 type const e = {{{}}};
Chris@16 67 return e;
Chris@16 68 }
Chris@16 69 };
Chris@16 70 }
Chris@16 71
Chris@16 72 #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES)
Chris@16 73
Chris@16 74 #include <boost/phoenix/core/preprocessed/argument.hpp>
Chris@16 75
Chris@16 76 #else
Chris@16 77
Chris@16 78 #if !defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
Chris@16 79 #include <boost/phoenix/core/detail/argument.hpp>
Chris@16 80 #else
Chris@16 81
Chris@16 82 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
Chris@16 83 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/argument_predefined_" BOOST_PHOENIX_LIMIT_STR ".hpp")
Chris@16 84 #endif
Chris@16 85 /*==============================================================================
Chris@16 86 Copyright (c) 2001-2010 Joel de Guzman
Chris@16 87 Copyright (c) 2010-2011 Thomas Heller
Chris@16 88
Chris@16 89 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 90 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 91 ==============================================================================*/
Chris@16 92
Chris@16 93 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
Chris@16 94 #pragma wave option(preserve: 1)
Chris@16 95 #endif
Chris@16 96
Chris@16 97 #ifdef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
Chris@16 98 #undef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
Chris@16 99 #define BOOST_PHOENIX_NO_PREDEFINED_TERMINALS_RESTORE
Chris@16 100 #endif
Chris@16 101
Chris@16 102 #include <boost/phoenix/core/detail/argument.hpp>
Chris@16 103
Chris@16 104 #ifndef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS_RESTORE
Chris@16 105 #define BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
Chris@16 106 #undef BOOST_PHOENIX_NO_PREDEFINED_TERIMINALS_RESTORE
Chris@16 107 #endif
Chris@16 108
Chris@16 109 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
Chris@16 110 #pragma wave option(output: null)
Chris@16 111 #endif
Chris@16 112
Chris@16 113 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
Chris@16 114 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/argument_no_predefined_" BOOST_PHOENIX_LIMIT_STR ".hpp")
Chris@16 115 #endif
Chris@16 116 /*==============================================================================
Chris@16 117 Copyright (c) 2001-2010 Joel de Guzman
Chris@16 118 Copyright (c) 2010-2011 Thomas Heller
Chris@16 119
Chris@16 120 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 121 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 122 ==============================================================================*/
Chris@16 123
Chris@16 124 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
Chris@16 125 #pragma wave option(preserve: 1)
Chris@16 126 #endif
Chris@16 127
Chris@16 128 #ifndef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
Chris@16 129 #define BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
Chris@16 130 #define BOOST_PHOENIX_NO_PREDEFINED_TERMINALS_RESTORE
Chris@16 131 #endif
Chris@16 132
Chris@16 133 #include <boost/phoenix/core/detail/argument.hpp>
Chris@16 134
Chris@16 135 #ifndef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS_RESTORE
Chris@16 136 #undef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
Chris@16 137 #undef BOOST_PHOENIX_NO_PREDEFINED_TERIMINALS_RESTORE
Chris@16 138 #endif
Chris@16 139
Chris@16 140 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
Chris@16 141 #pragma wave option(output: null)
Chris@16 142 #endif
Chris@16 143
Chris@16 144 #endif
Chris@16 145
Chris@16 146 #endif
Chris@16 147
Chris@16 148 }}
Chris@16 149
Chris@16 150 #endif