1
/*=============================================================================
2
Copyright (c) 2001-2007 Joel de Guzman
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_STATEMENT_WHILE_HPP
8
#define PHOENIX_STATEMENT_WHILE_HPP
10
#include <boost/spirit/home/phoenix/core/composite.hpp>
11
#include <boost/spirit/home/phoenix/core/compose.hpp>
13
namespace boost { namespace phoenix
17
template <typename Env, typename Cond, typename Do>
23
template <typename RT, typename Env, typename Cond, typename Do>
25
eval(Env const& env, Cond& cond, Do& do_)
27
while (cond.eval(env))
32
template <typename Cond>
35
while_gen(Cond const& cond)
38
template <typename Do>
39
actor<typename as_composite<while_eval, Cond, Do>::type>
40
operator[](Do const& do_) const
42
return compose<while_eval>(cond, do_);
48
template <typename Cond>
49
inline while_gen<Cond>
50
while_(Cond const& cond)
52
return while_gen<Cond>(cond);