1 [/==============================================================================
2 Copyright (C) 2001-2010 Joel de Guzman
3 Copyright (C) 2001-2005 Dan Marsden
4 Copyright (C) 2001-2010 Thomas Heller
6 Distributed under the Boost Software License, Version 1.0. (See accompanying
7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 ===============================================================================/]
10 [section Lazy Statements]
12 Lazy statements? Sure. There are lazy versions of the C++ statements we all know
13 and love. For example:
20 Say, for example, we wish to print all the elements that are greater than 5
21 (separated by a comma) in a vector. Here's how we write it:
23 std::for_each(v.begin(), v.end(),
26 std::cout << arg1 << ", "
30 (See [@../../example/if.cpp if.cpp])
32 [blurb __tip__ Learn more about statements [link phoenix.modules.statement here.]]