Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/doc/html/lambda/getting_started.html @ 47

Last change on this file since 47 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 7.2 KB
Line 
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>Getting Started</title>
5<link rel="stylesheet" href="../boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
7<link rel="start" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8<link rel="up" href="../lambda.html" title="Chapter 8. Boost.Lambda">
9<link rel="prev" href="../lambda.html" title="Chapter 8. Boost.Lambda">
10<link rel="next" href="s03.html" title="Introduction">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%">
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
15<td align="center"><a href="../../../index.htm">Home</a></td>
16<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="../../../people/people.htm">People</a></td>
18<td align="center"><a href="../../../more/faq.htm">FAQ</a></td>
19<td align="center"><a href="../../../more/index.htm">More</a></td>
20</table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="../lambda.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../lambda.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="s03.html"><img src="../images/next.png" alt="Next"></a>
24</div>
25<div class="section" lang="en">
26<div class="titlepage"><div><div><h2 class="title" style="clear: both">
27<a name="lambda.getting_started"></a>Getting Started</h2></div></div></div>
28<div class="toc"><dl>
29<dt><span class="section"><a href="getting_started.html#id1242965">Installing the library</a></span></dt>
30<dt><span class="section"><a href="getting_started.html#id1243250">Conventions used in this document</a></span></dt>
31</dl></div>
32<div class="section" lang="en">
33<div class="titlepage"><div><div><h3 class="title">
34<a name="id1242965"></a>Installing the library</h3></div></div></div>
35<p>
36        The library consists of include files only, hence there is no
37        installation procedure. The <code class="literal">boost</code> include directory
38        must be on the include path.
39        There are a number of include files that give different functionality:
40
41       
42        </p>
43<div class="itemizedlist"><ul type="disc">
44<li><p>
45              <code class="filename">lambda/lambda.hpp</code> defines lambda expressions for different C++
46              operators, see <a href="le_in_details.html#lambda.operator_expressions" title="Operator expressions">the section called &#8220;Operator expressions&#8221;</a>.
47            </p></li>
48<li><p>
49              <code class="filename">lambda/bind.hpp</code> defines <code class="literal">bind</code> functions for up to 9 arguments, see <a href="le_in_details.html#lambda.bind_expressions" title="Bind expressions">the section called &#8220;Bind expressions&#8221;</a>.</p></li>
50<li><p>
51              <code class="filename">lambda/if.hpp</code> defines lambda function equivalents for if statements and the conditional operator, see <a href="le_in_details.html#lambda.lambda_expressions_for_control_structures" title="Lambda expressions for control structures">the section called &#8220;Lambda expressions for control structures&#8221;</a> (includes <code class="filename">lambda.hpp</code>).
52            </p></li>
53<li><p>
54              <code class="filename">lambda/loops.hpp</code> defines lambda function equivalent for looping constructs, see <a href="le_in_details.html#lambda.lambda_expressions_for_control_structures" title="Lambda expressions for control structures">the section called &#8220;Lambda expressions for control structures&#8221;</a>.
55            </p></li>
56<li><p>
57              <code class="filename">lambda/switch.hpp</code> defines lambda function equivalent for the switch statement, see <a href="le_in_details.html#lambda.lambda_expressions_for_control_structures" title="Lambda expressions for control structures">the section called &#8220;Lambda expressions for control structures&#8221;</a>.
58            </p></li>
59<li><p>
60              <code class="filename">lambda/construct.hpp</code> provides tools for writing lambda expressions with constructor, destructor, new and delete invocations, see <a href="le_in_details.html#lambda.construction_and_destruction" title="Construction and destruction">the section called &#8220;Construction and destruction&#8221;</a> (includes <code class="filename">lambda.hpp</code>).
61            </p></li>
62<li><p>
63              <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 href="le_in_details.html#lambda.cast_expressions" title="
64Cast expressions
65">the section called &#8220;
66Cast expressions
67&#8221;</a>.
68            </p></li>
69<li><p>
70              <code class="filename">lambda/exceptions.hpp</code> gives tools for throwing and catching
71              exceptions within lambda functions, <a href="le_in_details.html#lambda.exceptions" title="Exceptions">the section called &#8220;Exceptions&#8221;</a> (includes
72              <code class="filename">lambda.hpp</code>).
73            </p></li>
74<li><p>
75              <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 href="le_in_details.html#lambda.nested_stl_algorithms" title="Nesting STL algorithm invocations">the section called &#8220;Nesting STL algorithm invocations&#8221;</a>.
76            </p></li>
77</ul></div>
78<p>
79
80        Any other header files in the package are for internal use.
81        Additionally, the library depends on two other Boost Libraries, the
82        <span class="emphasis"><em>Tuple</em></span> [<a href="../lambda.html#cit:boost::tuple" title="[tuple]"><span class="abbrev">tuple</span></a>] and the <span class="emphasis"><em>type_traits</em></span> [<a href="../lambda.html#cit:boost::type_traits" title="[type_traits]"><span class="abbrev">type_traits</span></a>] libraries, and on the <code class="filename">boost/ref.hpp</code> header.
83      </p>
84<p>
85        All definitions are placed in the namespace <code class="literal">boost::lambda</code> and its subnamespaces.
86      </p>
87</div>
88<div class="section" lang="en">
89<div class="titlepage"><div><div><h3 class="title">
90<a name="id1243250"></a>Conventions used in this document</h3></div></div></div>
91<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.
92Implicit using declarations
93</p>
94<pre class="programlisting">
95using namespace std;
96using namespace boost::lambda;
97</pre>
98<p>
99are assumed to be in effect.
100</p>
101</div>
102</div>
103<table width="100%"><tr>
104<td align="left"></td>
105<td align="right"><small>Copyright © 1999-2004 Jaakko Järvi, Gary Powell</small></td>
106</tr></table>
107<hr>
108<div class="spirit-nav">
109<a accesskey="p" href="../lambda.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../lambda.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="s03.html"><img src="../images/next.png" alt="Next"></a>
110</div>
111</body>
112</html>
Note: See TracBrowser for help on using the repository browser.