• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>Getting Started</title>
6<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
7<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
8<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
9<link rel="up" href="../lambda.html" title="Chapter 20. Boost.Lambda">
10<link rel="prev" href="../lambda.html" title="Chapter 20. Boost.Lambda">
11<link rel="next" href="s03.html" title="Introduction">
12</head>
13<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14<table cellpadding="2" width="100%"><tr>
15<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
16<td align="center"><a href="../../../index.html">Home</a></td>
17<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
18<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
19<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
20<td align="center"><a href="../../../more/index.htm">More</a></td>
21</tr></table>
22<hr>
23<div class="spirit-nav">
24<a accesskey="p" href="../lambda.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../lambda.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="s03.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
25</div>
26<div class="section">
27<div class="titlepage"><div><div><h2 class="title" style="clear: both">
28<a name="lambda.getting_started"></a>Getting Started</h2></div></div></div>
29<div class="toc"><dl class="toc">
30<dt><span class="section"><a href="getting_started.html#id-1.3.21.4.2">Installing the library</a></span></dt>
31<dt><span class="section"><a href="getting_started.html#id-1.3.21.4.3">Conventions used in this document</a></span></dt>
32</dl></div>
33<div class="section">
34<div class="titlepage"><div><div><h3 class="title">
35<a name="id-1.3.21.4.2"></a>Installing the library</h3></div></div></div>
36<p>
37	The library consists of include files only, hence there is no
38	installation procedure. The <code class="literal">boost</code> include directory
39	must be on the include path.
40	There are a number of include files that give different functionality:
41
42
43	</p>
44<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
45<li class="listitem"><p>
46	      <code class="filename">lambda/lambda.hpp</code> defines lambda expressions for different C++
47	      operators, see <a class="xref" href="le_in_details.html#lambda.operator_expressions" title="Operator expressions">the section called “Operator expressions”</a>.
48	    </p></li>
49<li class="listitem"><p>
50	      <code class="filename">lambda/bind.hpp</code> defines <code class="literal">bind</code> functions for up to 9 arguments, see <a class="xref" href="le_in_details.html#lambda.bind_expressions" title="Bind expressions">the section called “Bind expressions”</a>.</p></li>
51<li class="listitem"><p>
52	      <code class="filename">lambda/if.hpp</code> defines lambda function equivalents for if statements and the conditional operator, see <a class="xref" href="le_in_details.html#lambda.lambda_expressions_for_control_structures" title="Lambda expressions for control structures">the section called “Lambda expressions for control structures”</a> (includes <code class="filename">lambda.hpp</code>).
53	    </p></li>
54<li class="listitem"><p>
55	      <code class="filename">lambda/loops.hpp</code> defines lambda function equivalent for looping constructs, see <a class="xref" href="le_in_details.html#lambda.lambda_expressions_for_control_structures" title="Lambda expressions for control structures">the section called “Lambda expressions for control structures”</a>.
56	    </p></li>
57<li class="listitem"><p>
58	      <code class="filename">lambda/switch.hpp</code> defines lambda function equivalent for the switch statement, see <a class="xref" href="le_in_details.html#lambda.lambda_expressions_for_control_structures" title="Lambda expressions for control structures">the section called “Lambda expressions for control structures”</a>.
59	    </p></li>
60<li class="listitem"><p>
61	      <code class="filename">lambda/construct.hpp</code> provides tools for writing lambda expressions with constructor, destructor, new and delete invocations, see <a class="xref" href="le_in_details.html#lambda.construction_and_destruction" title="Construction and destruction">the section called “Construction and destruction”</a> (includes <code class="filename">lambda.hpp</code>).
62	    </p></li>
63<li class="listitem"><p>
64	      <code class="filename">lambda/casts.hpp</code> provides lambda versions of different casts, as well as <code class="literal">sizeof</code> and <code class="literal">typeid</code>, see <a class="xref" href="le_in_details.html#lambda.cast_expressions" title="Cast expressions">the section called “
65Cast expressions
66”</a>.
67	    </p></li>
68<li class="listitem"><p>
69	      <code class="filename">lambda/exceptions.hpp</code> gives tools for throwing and catching
70	      exceptions within lambda functions, <a class="xref" href="le_in_details.html#lambda.exceptions" title="Exceptions">the section called “Exceptions”</a> (includes
71	      <code class="filename">lambda.hpp</code>).
72	    </p></li>
73<li class="listitem"><p>
74	      <code class="filename">lambda/algorithm.hpp</code> and <code class="filename">lambda/numeric.hpp</code> (cf. standard <code class="filename">algortihm</code> and <code class="filename">numeric</code> headers) allow nested STL algorithm invocations, see <a class="xref" href="le_in_details.html#lambda.nested_stl_algorithms" title="Nesting STL algorithm invocations">the section called “Nesting STL algorithm invocations”</a>.
75	    </p></li>
76</ul></div>
77<p>
78
79	Any other header files in the package are for internal use.
80	Additionally, the library depends on two other Boost Libraries, the
81	<span class="emphasis"><em>Tuple</em></span> <a class="xref" href="../lambda.html#cit:boost::tuple" title="The Boost Tuple Library">[<abbr class="abbrev">tuple</abbr>]</a> and the <span class="emphasis"><em>type_traits</em></span> <a class="xref" href="../lambda.html#cit:boost::type_traits" title="The Boost type_traits">[<abbr class="abbrev">type_traits</abbr>]</a> libraries, and on the <code class="filename">boost/ref.hpp</code> header.
82      </p>
83<p>
84	All definitions are placed in the namespace <code class="literal">boost::lambda</code> and its subnamespaces.
85      </p>
86</div>
87<div class="section">
88<div class="titlepage"><div><div><h3 class="title">
89<a name="id-1.3.21.4.3"></a>Conventions used in this document</h3></div></div></div>
90<p>In most code examples, we omit the namespace prefixes for names in the <code class="literal">std</code> and <code class="literal">boost::lambda</code> namespaces.
91Implicit using declarations
92</p>
93<pre class="programlisting">
94using namespace std;
95using namespace boost::lambda;
96</pre>
97<p>
98are assumed to be in effect.
99</p>
100</div>
101</div>
102<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
103<td align="left"></td>
104<td align="right"><div class="copyright-footer">Copyright © 1999-2004 Jaakko Järvi, Gary Powell<p>Use, modification and distribution is subject to the Boost
105    Software License, Version 1.0. (See accompanying file
106    <code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</p>
107</div></td>
108</tr></table>
109<hr>
110<div class="spirit-nav">
111<a accesskey="p" href="../lambda.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../lambda.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="s03.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
112</div>
113</body>
114</html>
115