Statistics
| Branch: | Revision:

root / custompackages / hello-boost-lambda / src / hello-boost-lambda.cpp @ 8c400302

History | View | Annotate | Download (351 Bytes)

1
// http://www.boost.org/doc/libs/1_59_0/more/getting_started/unix-variants.html
2

    
3
#include <boost/lambda/lambda.hpp>
4
#include <iostream>
5
#include <iterator>
6
#include <algorithm>
7

    
8
int main()
9
{
10
    using namespace boost::lambda;
11
    typedef std::istream_iterator<int> in;
12

    
13
    std::for_each(
14
        in(std::cin), in(), std::cout << (_1 * 10) << " " );
15
}