Statistics
| Branch: | Revision:

root / unused_packages / libboost / src / libboost.cpp @ f4124844

History | View | Annotate | Download (350 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 * 3) << " " );
15
}