diff options
Diffstat (limited to 'doc/html/lambda/getting_started.html')
-rw-r--r-- | doc/html/lambda/getting_started.html | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/doc/html/lambda/getting_started.html b/doc/html/lambda/getting_started.html new file mode 100644 index 0000000000..d7007eb21b --- /dev/null +++ b/doc/html/lambda/getting_started.html @@ -0,0 +1,102 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<title>Getting Started</title> +<link rel="stylesheet" href="../boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> +<link rel="start" href="../index.html" title="The Boost C++ Libraries"> +<link rel="up" href="../lambda.html" title="Chapter 6. Boost.Lambda"> +<link rel="prev" href="../lambda.html" title="Chapter 6. Boost.Lambda"> +<link rel="next" href="s03.html" title="Introduction"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"> +<td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../../boost.png"></td> +<td align="center"><a href="../../../index.htm">Home</a></td> +<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="../../../people/people.htm">People</a></td> +<td align="center"><a href="../../../more/faq.htm">FAQ</a></td> +<td align="center"><a href="../../../more/index.htm">More</a></td> +</table> +<hr> +<div class="spirit-nav"> +<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> +</div> +<div class="section" lang="en"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="lambda.getting_started"></a>Getting Started</h3></div></div></div> +<div class="toc"><dl> +<dt><span class="section"><a href="getting_started.html#id1222408">Installing the library</a></span></dt> +<dt><span class="section"><a href="getting_started.html#id1222668">Conventions used in this document</a></span></dt> +</dl></div> +<div class="section" lang="en"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="id1222408"></a>Installing the library</h4></div></div></div> +<p> + The library consists of include files only, hence there is no + installation procedure. The <code class="literal">boost</code> include directory + must be on the include path. + There are a number of include files that give different functionality: + + </p> +<div class="itemizedlist"><ul type="disc"> +<li><p><code class="filename">lambda/lambda.hpp</code> defines lambda expressions for different C++ + operators, see <a href="le_in_details.html#lambda.operator_expressions" title="Operator expressions">the section called “Operator expressions”</a>. + </p></li> +<li><p><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 “Bind expressions”</a>.</p></li> +<li><p><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 “Lambda expressions for control structures”</a> (includes <code class="filename">lambda.hpp</code>). + </p></li> +<li><p><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 “Lambda expressions for control structures”</a>. + </p></li> +<li><p><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 “Lambda expressions for control structures”</a>. + </p></li> +<li><p><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 “Construction and destruction”</a> (includes <code class="filename">lambda.hpp</code>). + </p></li> +<li><p><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=" +Cast expressions +">the section called “ +Cast expressions +”</a>. + </p></li> +<li><p><code class="filename">lambda/exceptions.hpp</code> gives tools for throwing and catching + exceptions within lambda functions, <a href="le_in_details.html#lambda.exceptions" title="Exceptions">the section called “Exceptions”</a> (includes + <code class="filename">lambda.hpp</code>). + </p></li> +<li><p><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 “Nesting STL algorithm invocations”</a>. + </p></li> +</ul></div> +<p> + + Any other header files in the package are for internal use. + Additionally, the library depends on two other Boost Libraries, the + <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. + </p> +<p> + All definitions are placed in the namespace <code class="literal">boost::lambda</code> and its subnamespaces. + </p> +</div> +<div class="section" lang="en"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="id1222668"></a>Conventions used in this document</h4></div></div></div> +<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. +Implicit using declarations +</p> +<pre class="programlisting"> +using namespace std; +using namespace boost::lambda; +</pre> +<p> +are assumed to be in effect. +</p> +</div> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><small>Copyright © 1999-2004 Jaakko Järvi, Gary Powell</small></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<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> +</div> +</body> +</html> |