Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/phoenix/operator/if_else.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +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 Thomas Heller |
Chris@16 | 4 |
Chris@16 | 5 Distributed under the Boost Software License, Version 1.0. (See accompanying |
Chris@16 | 6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 7 ==============================================================================*/ |
Chris@16 | 8 #ifndef BOOST_PHOENIX_OPERATOR_IF_ELSE_HPP |
Chris@16 | 9 #define BOOST_PHOENIX_OPERATOR_IF_ELSE_HPP |
Chris@16 | 10 |
Chris@16 | 11 #include <boost/phoenix/core/limits.hpp> |
Chris@16 | 12 #include <boost/phoenix/core/meta_grammar.hpp> |
Chris@16 | 13 #include <boost/phoenix/core/expression.hpp> |
Chris@16 | 14 #include <boost/proto/operators.hpp> |
Chris@16 | 15 |
Chris@16 | 16 namespace boost { namespace phoenix |
Chris@16 | 17 { |
Chris@16 | 18 namespace tag |
Chris@16 | 19 { |
Chris@16 | 20 typedef proto::tag::if_else_ if_else_operator; |
Chris@16 | 21 } |
Chris@16 | 22 |
Chris@16 | 23 namespace expression |
Chris@16 | 24 { |
Chris@16 | 25 template <typename A0, typename A1, typename A2> |
Chris@16 | 26 struct if_else_operator |
Chris@16 | 27 : expr<tag::if_else_operator, A0, A1, A2> |
Chris@16 | 28 {}; |
Chris@16 | 29 } |
Chris@16 | 30 |
Chris@16 | 31 namespace rule |
Chris@16 | 32 { |
Chris@16 | 33 struct if_else_operator |
Chris@16 | 34 : expression::if_else_operator< |
Chris@16 | 35 meta_grammar |
Chris@16 | 36 , meta_grammar |
Chris@16 | 37 , meta_grammar |
Chris@16 | 38 > |
Chris@16 | 39 {}; |
Chris@16 | 40 } |
Chris@16 | 41 |
Chris@16 | 42 template <typename Dummy> |
Chris@16 | 43 struct meta_grammar::case_<tag::if_else_operator, Dummy> |
Chris@16 | 44 : enable_rule<rule::if_else_operator, Dummy> |
Chris@16 | 45 {}; |
Chris@16 | 46 |
Chris@16 | 47 using proto::if_else; |
Chris@16 | 48 }} |
Chris@16 | 49 |
Chris@16 | 50 #endif |