comparison DEPENDENCIES/generic/include/boost/spirit/home/phoenix/object/delete.hpp @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children
comparison
equal deleted inserted replaced
15:663ca0da4350 16:2665513ce2d3
1 /*=============================================================================
2 Copyright (c) 2001-2007 Joel de Guzman
3
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #ifndef PHOENIX_OBJECT_DELETE_HPP
8 #define PHOENIX_OBJECT_DELETE_HPP
9
10 #include <boost/spirit/home/phoenix/core/compose.hpp>
11
12 namespace boost { namespace phoenix
13 {
14 namespace impl
15 {
16 struct delete_eval
17 {
18 template <typename Env, typename P>
19 struct result
20 {
21 typedef void type;
22 };
23
24 template <typename Args, typename Env, typename P>
25 static void
26 eval(Env const& env, P& p)
27 {
28 delete p.eval(env);
29 }
30 };
31 }
32
33 template <typename P>
34 inline actor<typename as_composite<impl::delete_eval, P>::type>
35 delete_(P const& p)
36 {
37 return compose<impl::delete_eval>(p);
38 }
39 }}
40
41 #endif