diff options
Diffstat (limited to 'doc/html/function/tutorial.html')
-rw-r--r--[-rwxr-xr-x] | doc/html/function/tutorial.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/html/function/tutorial.html b/doc/html/function/tutorial.html index 2dc8f10950..3dbc656893 100755..100644 --- a/doc/html/function/tutorial.html +++ b/doc/html/function/tutorial.html @@ -26,11 +26,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> -<dt><span class="section"><a href="tutorial.html#id1529542">Basic Usage</a></span></dt> -<dt><span class="section"><a href="tutorial.html#id1529905">Free functions</a></span></dt> -<dt><span class="section"><a href="tutorial.html#id1529941">Member functions</a></span></dt> -<dt><span class="section"><a href="tutorial.html#id1530160">References to Function Objects</a></span></dt> -<dt><span class="section"><a href="tutorial.html#id1530326">Comparing Boost.Function function objects</a></span></dt> +<dt><span class="section"><a href="tutorial.html#id1545352">Basic Usage</a></span></dt> +<dt><span class="section"><a href="tutorial.html#id1545683">Free functions</a></span></dt> +<dt><span class="section"><a href="tutorial.html#id1545718">Member functions</a></span></dt> +<dt><span class="section"><a href="tutorial.html#id1545918">References to Function Objects</a></span></dt> +<dt><span class="section"><a href="tutorial.html#id1546064">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 @@ -79,7 +79,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="id1529542"></a>Basic Usage</h3></div></div></div> +<a name="id1545352"></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 @@ -185,9 +185,9 @@ else <p> </p> <p> Alternatively, -<code class="computeroutput"><code class="computeroutput"><a class="link" href="../boost/function.html#id677638-bb">empty</a></code>()</code> +<code class="computeroutput"><code class="computeroutput"><a class="link" href="../boost/function.html#id737431-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#id750484-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#id726775-bb">clear</a></code>()</code> member function, e.g., </p> <pre class="programlisting">f = 0;</pre> <p> @@ -195,7 +195,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="id1529905"></a>Free functions</h3></div></div></div> +<a name="id1545683"></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> @@ -208,7 +208,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="id1529941"></a>Member functions</h3></div></div></div> +<a name="id1545718"></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 @@ -301,7 +301,7 @@ f(5); // Call x.foo(5)</pre> </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> -<a name="id1530160"></a>References to Function Objects</h3></div></div></div> +<a name="id1545918"></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 @@ -350,7 +350,7 @@ exceptions during assignment or construction. </div> <div class="section"> <div class="titlepage"><div><div><h3 class="title"> -<a name="id1530326"></a>Comparing Boost.Function function objects</h3></div></div></div> +<a name="id1546064"></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 |