Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/phoenix/object/delete.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 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_OBJECT_DELETE_HPP |
Chris@16 | 9 #define BOOST_PHOENIX_OBJECT_DELETE_HPP |
Chris@16 | 10 |
Chris@16 | 11 #include <boost/phoenix/core/limits.hpp> |
Chris@16 | 12 #include <boost/phoenix/core/expression.hpp> |
Chris@16 | 13 #include <boost/phoenix/core/meta_grammar.hpp> |
Chris@16 | 14 #include <boost/phoenix/core/call.hpp> |
Chris@16 | 15 |
Chris@16 | 16 BOOST_PHOENIX_DEFINE_EXPRESSION( |
Chris@16 | 17 (boost)(phoenix)(delete_) |
Chris@16 | 18 , (meta_grammar) |
Chris@16 | 19 ) |
Chris@16 | 20 |
Chris@16 | 21 namespace boost { namespace phoenix |
Chris@16 | 22 { |
Chris@16 | 23 struct delete_eval |
Chris@16 | 24 { |
Chris@16 | 25 typedef void result_type; |
Chris@16 | 26 |
Chris@16 | 27 template <typename P, typename Context> |
Chris@16 | 28 result_type |
Chris@16 | 29 operator()(P const& p, Context const &ctx) const |
Chris@16 | 30 { |
Chris@16 | 31 delete boost::phoenix::eval(p, ctx); |
Chris@16 | 32 } |
Chris@16 | 33 }; |
Chris@16 | 34 |
Chris@16 | 35 template <typename Dummy> |
Chris@16 | 36 struct default_actions::when<rule::delete_, Dummy> |
Chris@16 | 37 : call<delete_eval> |
Chris@16 | 38 {}; |
Chris@16 | 39 |
Chris@16 | 40 template <typename P> |
Chris@16 | 41 inline |
Chris@16 | 42 typename expression::delete_<P>::type const |
Chris@16 | 43 delete_(P const& p) |
Chris@16 | 44 { |
Chris@16 | 45 return expression::delete_<P>::make(p); |
Chris@16 | 46 } |
Chris@16 | 47 |
Chris@16 | 48 }} |
Chris@16 | 49 |
Chris@16 | 50 #endif |