diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-09-13 11:26:20 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-09-13 11:27:13 +0900 |
commit | 88e602c57797660ebe0f9e15dbd64c1ff16dead3 (patch) | |
tree | e96e9e1d22b982c9f62f86f2357a1f53f9ef9dac /doc/html/function/tutorial.html | |
parent | 4fadd968fa12130524c8380f33fcfe25d4de79e5 (diff) | |
download | boost-88e602c57797660ebe0f9e15dbd64c1ff16dead3.tar.gz boost-88e602c57797660ebe0f9e15dbd64c1ff16dead3.tar.bz2 boost-88e602c57797660ebe0f9e15dbd64c1ff16dead3.zip |
Imported Upstream version 1.65.1upstream/1.65.1
Change-Id: Ie4005d637141f8311f4b6d46b613478a2b3dae59
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'doc/html/function/tutorial.html')
-rw-r--r-- | 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 651d4ab15c..b287135e26 100644 --- a/doc/html/function/tutorial.html +++ b/doc/html/function/tutorial.html @@ -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#idp223511888">Basic Usage</a></span></dt> -<dt><span class="section"><a href="tutorial.html#idp223553648">Free functions</a></span></dt> -<dt><span class="section"><a href="tutorial.html#idp223557664">Member functions</a></span></dt> -<dt><span class="section"><a href="tutorial.html#idp223582032">References to Function Objects</a></span></dt> -<dt><span class="section"><a href="tutorial.html#idp223601216">Comparing Boost.Function function objects</a></span></dt> +<dt><span class="section"><a href="tutorial.html#idp242340256">Basic Usage</a></span></dt> +<dt><span class="section"><a href="tutorial.html#idp242382016">Free functions</a></span></dt> +<dt><span class="section"><a href="tutorial.html#idp242386032">Member functions</a></span></dt> +<dt><span class="section"><a href="tutorial.html#idp242410400">References to Function Objects</a></span></dt> +<dt><span class="section"><a href="tutorial.html#idp242429584">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="idp223511888"></a>Basic Usage</h3></div></div></div> +<a name="idp242340256"></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#idp527049344-bb">empty</a></code>()</code> +<code class="computeroutput"><code class="computeroutput"><a class="link" href="../boost/function.html#idp508791904-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#idp527045728-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#idp508788288-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="idp223553648"></a>Free functions</h3></div></div></div> +<a name="idp242382016"></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="idp223557664"></a>Member functions</h3></div></div></div> +<a name="idp242386032"></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="idp223582032"></a>References to Function Objects</h3></div></div></div> +<a name="idp242410400"></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="idp223601216"></a>Comparing Boost.Function function objects</h3></div></div></div> +<a name="idp242429584"></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 |