diff options
Diffstat (limited to 'doc/html/function/tutorial.html')
-rw-r--r-- | doc/html/function/tutorial.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/function/tutorial.html b/doc/html/function/tutorial.html index 36addac46f..185a66503d 100644 --- a/doc/html/function/tutorial.html +++ b/doc/html/function/tutorial.html @@ -6,7 +6,7 @@ <link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> -<link rel="up" href="../function.html" title="Chapter 14. Boost.Function"> +<link rel="up" href="../function.html" title="Chapter 15. Boost.Function"> <link rel="prev" href="history.html" title="History & Compatibility Notes"> <link rel="next" href="reference.html" title="Reference"> </head> @@ -27,11 +27,11 @@ <div class="titlepage"><div><div><h2 class="title" style="clear: both"> <a name="function.tutorial"></a>Tutorial</h2></div></div></div> <div class="toc"><dl class="toc"> -<dt><span class="section"><a href="tutorial.html#id-1.3.15.5.4">Basic Usage</a></span></dt> -<dt><span class="section"><a href="tutorial.html#id-1.3.15.5.5">Free functions</a></span></dt> -<dt><span class="section"><a href="tutorial.html#id-1.3.15.5.6">Member functions</a></span></dt> -<dt><span class="section"><a href="tutorial.html#id-1.3.15.5.7">References to Function Objects</a></span></dt> -<dt><span class="section"><a href="tutorial.html#id-1.3.15.5.8">Comparing Boost.Function function objects</a></span></dt> +<dt><span class="section"><a href="tutorial.html#id-1.3.16.5.4">Basic Usage</a></span></dt> +<dt><span class="section"><a href="tutorial.html#id-1.3.16.5.5">Free functions</a></span></dt> +<dt><span class="section"><a href="tutorial.html#id-1.3.16.5.6">Member functions</a></span></dt> +<dt><span class="section"><a href="tutorial.html#id-1.3.16.5.7">References to Function Objects</a></span></dt> +<dt><span class="section"><a href="tutorial.html#id-1.3.16.5.8">Comparing Boost.Function function objects</a></span></dt> </dl></div> <p> Boost.Function has two syntactical forms: the preferred form and the portable form. The preferred form fits more closely with the @@ -80,7 +80,7 @@ form to use for your compiler. <p> If your compiler does not appear in this list, please try the preferred syntax and report your results to the Boost list so that we can keep this table up-to-date.</p> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> -<a name="id-1.3.15.5.4"></a>Basic Usage</h3></div></div></div> +<a name="id-1.3.16.5.4"></a>Basic Usage</h3></div></div></div> <p> A function wrapper is defined simply by instantiating the <code class="computeroutput">function</code> class template with the desired return type and argument types, formulated @@ -186,9 +186,9 @@ else <p> </p> <p> Alternatively, -<code class="computeroutput"><code class="computeroutput"><a class="link" href="../boost/function.html#id-1_3_15_6_2_1_4_28_1-bb">empty</a></code>()</code> +<code class="computeroutput"><code class="computeroutput"><a class="link" href="../boost/function.html#id-1_3_16_6_2_1_4_28_1-bb">empty</a></code>()</code> method will return whether or not the wrapper is empty. </p> -<p> Finally, we can clear out a function target by assigning it to <code class="computeroutput">0</code> or by calling the <code class="computeroutput"><code class="computeroutput"><a class="link" href="../boost/function.html#id-1_3_15_6_2_1_4_27_2-bb">clear</a></code>()</code> member function, e.g., +<p> Finally, we can clear out a function target by assigning it to <code class="computeroutput">0</code> or by calling the <code class="computeroutput"><code class="computeroutput"><a class="link" href="../boost/function.html#id-1_3_16_6_2_1_4_27_2-bb">clear</a></code>()</code> member function, e.g., </p> <pre class="programlisting">f = 0;</pre> <p> @@ -196,7 +196,7 @@ method will return whether or not the wrapper is empty. </p> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> -<a name="id-1.3.15.5.5"></a>Free functions</h3></div></div></div> +<a name="id-1.3.16.5.5"></a>Free functions</h3></div></div></div> <p> Free function pointers can be considered singleton function objects with const function call operators, and can therefore be directly used with the function object wrappers: </p> <pre class="programlisting">float mul_ints(int x, int y) { return ((float)x) * y; }</pre> @@ -209,7 +209,7 @@ method will return whether or not the wrapper is empty. </p> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> -<a name="id-1.3.15.5.6"></a>Member functions</h3></div></div></div> +<a name="id-1.3.16.5.6"></a>Member functions</h3></div></div></div> <p> In many systems, callbacks often call to member functions of a particular object. This is often referred to as "argument binding", and is beyond the scope of Boost.Function. The use of member functions @@ -302,7 +302,7 @@ f(5); // Call x.foo(5)</pre> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> -<a name="id-1.3.15.5.7"></a>References to Function Objects</h3></div></div></div> +<a name="id-1.3.16.5.7"></a>References to Function Objects</h3></div></div></div> <p> In some cases it is expensive (or semantically incorrect) to have Boost.Function clone a function object. In such cases, it is possible to request that @@ -351,7 +351,7 @@ exceptions during assignment or construction. </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> -<a name="id-1.3.15.5.8"></a>Comparing Boost.Function function objects</h3></div></div></div> +<a name="id-1.3.16.5.8"></a>Comparing Boost.Function function objects</h3></div></div></div> <p>Function object wrappers can be compared via <code class="computeroutput">==</code> or <code class="computeroutput">!=</code> against any function object that can be stored within the wrapper. If the function object wrapper contains a |