]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/proto/example/lambda.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / proto / example / lambda.cpp
1 //[ Lambda
2 ///////////////////////////////////////////////////////////////////////////////
3 // Copyright 2008 Eric Niebler. Distributed under the Boost
4 // Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // This example builds a simple but functional lambda library using Proto.
8
9 #include <iostream>
10 #include "./lambda.hpp"
11
12 int main()
13 {
14 using namespace boost::lambda;
15 int i = (_1 + _1)(42);
16 std::cout << i << std::endl;
17 }