mirror of
https://github.com/boostorg/function.git
synced 2025-07-19 23:52:11 +02:00
tutorial.html:
- State that ref(...) function objects won't throw during construction, either. [SVN r12061]
This commit is contained in:
@ -120,7 +120,8 @@ Here, <code>f</code> will not make a copy of
|
|||||||
<code>a_function_object</code>, nor will <code>f2</code> when it is
|
<code>a_function_object</code>, nor will <code>f2</code> when it is
|
||||||
targeted to <code>f</code>'s reference to
|
targeted to <code>f</code>'s reference to
|
||||||
<code>a_function_object</code>. Additionally, when using references to
|
<code>a_function_object</code>. Additionally, when using references to
|
||||||
function objects, Boost.Function will not throw exceptions during assignment.
|
function objects, Boost.Function will not throw exceptions during
|
||||||
|
assignment or construction.
|
||||||
|
|
||||||
<h2><a name="family">The <code>function</code> family</a></h2>
|
<h2><a name="family">The <code>function</code> family</a></h2>
|
||||||
<p> The header <<a href="../../../boost/function.hpp">boost/function.hpp</a>> defines the primary entry point to the function object wrappers, the class template <code>boost::function</code>. This class template is essentially a thin wrapper around a set of similar numbered function object wrappers, <code>boost::function0</code>, <code>boost::function1</code>, etc., where the number indicates the number of arguments passed to the function object target. The declaration of <code>f</code> above could also be written as:
|
<p> The header <<a href="../../../boost/function.hpp">boost/function.hpp</a>> defines the primary entry point to the function object wrappers, the class template <code>boost::function</code>. This class template is essentially a thin wrapper around a set of similar numbered function object wrappers, <code>boost::function0</code>, <code>boost::function1</code>, etc., where the number indicates the number of arguments passed to the function object target. The declaration of <code>f</code> above could also be written as:
|
||||||
@ -198,7 +199,7 @@ boost::function2<float, int, int, SynchronizedPolicy, SynchronizedMixin> f
|
|||||||
<address><a href="mailto:gregod@cs.rpi.edu">Douglas Gregor</a></address>
|
<address><a href="mailto:gregod@cs.rpi.edu">Douglas Gregor</a></address>
|
||||||
<!-- Created: Fri Jul 13 12:47:11 EDT 2001 -->
|
<!-- Created: Fri Jul 13 12:47:11 EDT 2001 -->
|
||||||
<!-- hhmts start -->
|
<!-- hhmts start -->
|
||||||
Last modified: Wed Dec 5 17:48:40 EST 2001
|
Last modified: Fri Dec 14 19:58:14 EST 2001
|
||||||
<!-- hhmts end -->
|
<!-- hhmts end -->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user