forked from boostorg/fusion
merge from trunk
[SVN r47205]
This commit is contained in:
@ -1,21 +1,22 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Callable Object</title>
|
||||
<title> Callable Object</title>
|
||||
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../concepts.html" title="Concepts">
|
||||
<link rel="prev" href="../concepts.html" title="Concepts">
|
||||
<link rel="next" href="reg_callable.html" title="Regular Callable Object">
|
||||
<link rel="next" href="reg_callable.html" title=" Regular Callable
|
||||
Object">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</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>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,21 +25,20 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.functional.concepts.callable"></a><a class="link" href="callable.html" title="Callable Object"> Callable Object</a>
|
||||
</h4></div></div></div>
|
||||
<a name="fusion.functional.concepts.callable.description"></a><h6>
|
||||
<a name="id2585141"></a>
|
||||
<a class="link" href="callable.html#fusion.functional.concepts.callable.description">Description</a>
|
||||
</h6>
|
||||
<a name="fusion.functional.concepts.callable"></a><a href="callable.html" title=" Callable Object"> Callable Object</a></h4></div></div></div>
|
||||
<a name="fusion.functional.concepts.callable.description"></a><h5>
|
||||
<a name="id654608"></a>
|
||||
<a href="callable.html#fusion.functional.concepts.callable.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
A pointer to a function, a pointer to member function, a pointer to member
|
||||
data, or a class type whose objects can appear immediately to the left
|
||||
of a function call operator.
|
||||
</p>
|
||||
<a name="fusion.functional.concepts.callable.models"></a><h6>
|
||||
<a name="id2585168"></a>
|
||||
<a class="link" href="callable.html#fusion.functional.concepts.callable.models">Models</a>
|
||||
</h6>
|
||||
<a name="fusion.functional.concepts.callable.models"></a><h5>
|
||||
<a name="id654640"></a>
|
||||
<a href="callable.html#fusion.functional.concepts.callable.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li>
|
||||
function pointer types
|
||||
@ -50,10 +50,10 @@
|
||||
all kinds of function objects
|
||||
</li>
|
||||
</ul></div>
|
||||
<a name="fusion.functional.concepts.callable.examples"></a><h6>
|
||||
<a name="id2585206"></a>
|
||||
<a class="link" href="callable.html#fusion.functional.concepts.callable.examples">Examples</a>
|
||||
</h6>
|
||||
<a name="fusion.functional.concepts.callable.examples"></a><h5>
|
||||
<a name="id385021"></a>
|
||||
<a href="callable.html#fusion.functional.concepts.callable.examples">Examples</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="special">&</span> <span class="identifier">a_free_function</span>
|
||||
<span class="special">&</span> <span class="identifier">a_class</span><span class="special">::</span><span class="identifier">a_static_member_function</span>
|
||||
@ -63,7 +63,8 @@
|
||||
<span class="comment">// using namespace boost;
|
||||
</span><span class="identifier">bind</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">less</span><span class="special"><</span><span class="keyword">int</span><span class="special">>(),</span> <span class="identifier">_1</span><span class="special">,</span> <span class="number">5</span><span class="special">)</span>
|
||||
<span class="identifier">lambda</span><span class="special">::</span><span class="identifier">_1</span> <span class="special">+=</span> <span class="identifier">lambda</span><span class="special">::</span><span class="identifier">_2</span><span class="special">;</span>
|
||||
<span class="identifier">fusion</span><span class="special">::</span><a class="link" href="../generation/functions/mk_fused_fobj.html" title="make_fused_function_object"><code class="computeroutput"><span class="identifier">make_fused_function_object</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">less</span><span class="special"><</span><span class="keyword">int</span><span class="special">>())</span>
|
||||
<span class="identifier">fusion</span><span class="special">::</span><a href="../generation/functions/mk_fused_fobj.html" title="
|
||||
make_fused_function_object"><tt class="computeroutput"><span class="identifier">make_fused_function_object</span></tt></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">less</span><span class="special"><</span><span class="keyword">int</span><span class="special">>())</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
@ -1,21 +1,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Deferred Callable Object</title>
|
||||
<title> Deferred
|
||||
Callable Object</title>
|
||||
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../concepts.html" title="Concepts">
|
||||
<link rel="prev" href="reg_callable.html" title="Regular Callable Object">
|
||||
<link rel="next" href="poly.html" title="Polymorphic Function Object">
|
||||
<link rel="prev" href="reg_callable.html" title=" Regular Callable
|
||||
Object">
|
||||
<link rel="next" href="poly.html" title=" Polymorphic Function
|
||||
Object">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</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>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,66 +27,64 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.functional.concepts.def_callable"></a><a class="link" href="def_callable.html" title="Deferred Callable Object"> Deferred
|
||||
Callable Object</a>
|
||||
</h4></div></div></div>
|
||||
<a name="fusion.functional.concepts.def_callable.description"></a><h6>
|
||||
<a name="id2813569"></a>
|
||||
<a class="link" href="def_callable.html#fusion.functional.concepts.def_callable.description">Description</a>
|
||||
</h6>
|
||||
<a name="fusion.functional.concepts.def_callable"></a><a href="def_callable.html" title=" Deferred
|
||||
Callable Object"> Deferred
|
||||
Callable Object</a></h4></div></div></div>
|
||||
<a name="fusion.functional.concepts.def_callable.description"></a><h5>
|
||||
<a name="id655582"></a>
|
||||
<a href="def_callable.html#fusion.functional.concepts.def_callable.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
<a class="link" href="callable.html" title="Callable Object">Callable Object</a>
|
||||
<a href="callable.html" title=" Callable Object">Callable Object</a>
|
||||
types that work with <a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top">Boost.ResultOf</a>
|
||||
to determine the result of a call.
|
||||
</p>
|
||||
<a name="fusion.functional.concepts.def_callable.refinement_of"></a><h6>
|
||||
<a name="id2813609"></a>
|
||||
<a class="link" href="def_callable.html#fusion.functional.concepts.def_callable.refinement_of">Refinement
|
||||
<a name="fusion.functional.concepts.def_callable.refinement_of"></a><h5>
|
||||
<a name="id655629"></a>
|
||||
<a href="def_callable.html#fusion.functional.concepts.def_callable.refinement_of">Refinement
|
||||
of</a>
|
||||
</h6>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a class="link" href="callable.html" title="Callable Object">Callable Object</a></li></ul></div>
|
||||
<div class="sidebar">
|
||||
<p class="title"><b></b></p>
|
||||
<p>
|
||||
note Once C++ supports the <code class="literal">decltype</code> keyword, all models
|
||||
of <a class="link" href="callable.html" title="Callable Object">Callable Object</a>
|
||||
will also be models of <a class="link" href="def_callable.html" title="Deferred Callable Object">Deferred
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="callable.html" title=" Callable Object">Callable Object</a></li></ul></div>
|
||||
<div class="sidebar"><p>
|
||||
note Once C++ supports the <tt class="literal">decltype</tt> keyword, all models
|
||||
of <a href="callable.html" title=" Callable Object">Callable Object</a>
|
||||
will also be models of <a href="def_callable.html" title=" Deferred
|
||||
Callable Object">Deferred
|
||||
Callable Object</a>, because function objects won't need client-side
|
||||
support for <code class="computeroutput"><span class="identifier">result_of</span></code>.
|
||||
</p>
|
||||
</div>
|
||||
support for <tt class="computeroutput"><span class="identifier">result_of</span></tt>.
|
||||
</p></div>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">F</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt></span></dt>
|
||||
<dd><p>
|
||||
A possibly const qualified Deferred Callable Object type
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Argument types
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">a1</span>
|
||||
<span class="special">...</span><span class="identifier">aN</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">a1</span>
|
||||
<span class="special">...</span><span class="identifier">aN</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Objects or references to objects with types <code class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></code>
|
||||
Objects or references to objects with types <tt class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></tt>
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">T1</span>
|
||||
<span class="special">...</span><span class="identifier">TN</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">T1</span>
|
||||
<span class="special">...</span><span class="identifier">TN</span></tt></span></dt>
|
||||
<dd><p>
|
||||
<code class="computeroutput"><span class="identifier">T</span></code>i is <code class="computeroutput"><span class="identifier">A</span></code>i <code class="computeroutput"><span class="special">&</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">a</span></code>i is an LValue,
|
||||
same as <code class="computeroutput"><span class="identifier">A</span></code>i, otherwise
|
||||
<tt class="computeroutput"><span class="identifier">T</span></tt>i is <tt class="computeroutput"><span class="identifier">A</span></tt>i <tt class="computeroutput"><span class="special">&</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">a</span></tt>i is an LValue,
|
||||
same as <tt class="computeroutput"><span class="identifier">A</span></tt>i, otherwise
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.functional.concepts.def_callable.expression_requirements"></a><h6>
|
||||
<a name="id2813884"></a>
|
||||
<a class="link" href="def_callable.html#fusion.functional.concepts.def_callable.expression_requirements">Expression
|
||||
<a name="fusion.functional.concepts.def_callable.expression_requirements"></a><h5>
|
||||
<a name="id655935"></a>
|
||||
<a href="def_callable.html#fusion.functional.concepts.def_callable.expression_requirements">Expression
|
||||
requirements</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@ -104,36 +105,37 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><code class="computeroutput"><span class="special"><</span> <span class="identifier">F</span><span class="special">(</span><span class="identifier">T1</span>
|
||||
<span class="special">...</span><span class="identifier">TN</span><span class="special">)</span> <span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></tt></a><tt class="computeroutput"><span class="special"><</span> <span class="identifier">F</span><span class="special">(</span><span class="identifier">T1</span>
|
||||
<span class="special">...</span><span class="identifier">TN</span><span class="special">)</span> <span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Result of a call with <code class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></code>-typed
|
||||
Result of a call with <tt class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></tt>-typed
|
||||
arguments
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.functional.concepts.def_callable.models"></a><h6>
|
||||
<a name="id2814049"></a>
|
||||
<a class="link" href="def_callable.html#fusion.functional.concepts.def_callable.models">Models</a>
|
||||
</h6>
|
||||
<a name="fusion.functional.concepts.def_callable.models"></a><h5>
|
||||
<a name="id656119"></a>
|
||||
<a href="def_callable.html#fusion.functional.concepts.def_callable.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li>
|
||||
<a class="link" href="poly.html" title="Polymorphic Function Object">Polymorphic Function
|
||||
<a href="poly.html" title=" Polymorphic Function
|
||||
Object">Polymorphic Function
|
||||
Object</a> types
|
||||
</li>
|
||||
<li>
|
||||
member (function or data) pointer types
|
||||
</li>
|
||||
</ul></div>
|
||||
<a name="fusion.functional.concepts.def_callable.examples"></a><h6>
|
||||
<a name="id2814088"></a>
|
||||
<a class="link" href="def_callable.html#fusion.functional.concepts.def_callable.examples">Examples</a>
|
||||
</h6>
|
||||
<a name="fusion.functional.concepts.def_callable.examples"></a><h5>
|
||||
<a name="id656165"></a>
|
||||
<a href="def_callable.html#fusion.functional.concepts.def_callable.examples">Examples</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="special">&</span> <span class="identifier">a_free_function</span>
|
||||
<span class="special">&</span> <span class="identifier">a_class</span><span class="special">::</span><span class="identifier">a_static_member_function</span>
|
||||
@ -143,7 +145,8 @@
|
||||
<span class="comment">// using namespace boost;
|
||||
</span><span class="identifier">bind</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">less</span><span class="special"><</span><span class="keyword">int</span><span class="special">>(),</span> <span class="identifier">_1</span><span class="special">,</span> <span class="number">5</span><span class="special">)</span>
|
||||
<span class="comment">// Note: Boost.Lambda expressions don't work with __boost_result_of__
|
||||
</span><span class="identifier">fusion</span><span class="special">::</span><a class="link" href="../generation/functions/mk_fused_fobj.html" title="make_fused_function_object"><code class="computeroutput"><span class="identifier">make_fused_function_object</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">less</span><span class="special"><</span><span class="keyword">int</span><span class="special">>())</span>
|
||||
</span><span class="identifier">fusion</span><span class="special">::</span><a href="../generation/functions/mk_fused_fobj.html" title="
|
||||
make_fused_function_object"><tt class="computeroutput"><span class="identifier">make_fused_function_object</span></tt></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">less</span><span class="special"><</span><span class="keyword">int</span><span class="special">>())</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
@ -1,21 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Polymorphic Function Object</title>
|
||||
<title> Polymorphic Function
|
||||
Object</title>
|
||||
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../concepts.html" title="Concepts">
|
||||
<link rel="prev" href="def_callable.html" title="Deferred Callable Object">
|
||||
<link rel="prev" href="def_callable.html" title=" Deferred
|
||||
Callable Object">
|
||||
<link rel="next" href="../invocation.html" title="Invocation">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</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>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,64 +26,67 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.functional.concepts.poly"></a><a class="link" href="poly.html" title="Polymorphic Function Object"> Polymorphic Function
|
||||
Object</a>
|
||||
</h4></div></div></div>
|
||||
<a name="fusion.functional.concepts.poly.description"></a><h6>
|
||||
<a name="id2814359"></a>
|
||||
<a class="link" href="poly.html#fusion.functional.concepts.poly.description">Description</a>
|
||||
</h6>
|
||||
<a name="fusion.functional.concepts.poly"></a><a href="poly.html" title=" Polymorphic Function
|
||||
Object"> Polymorphic Function
|
||||
Object</a></h4></div></div></div>
|
||||
<a name="fusion.functional.concepts.poly.description"></a><h5>
|
||||
<a name="id656467"></a>
|
||||
<a href="poly.html#fusion.functional.concepts.poly.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
A non-member-pointer <a class="link" href="def_callable.html" title="Deferred Callable Object">Deferred
|
||||
A non-member-pointer <a href="def_callable.html" title=" Deferred
|
||||
Callable Object">Deferred
|
||||
Callable Object</a> type.
|
||||
</p>
|
||||
<a name="fusion.functional.concepts.poly.refinement_of"></a><h6>
|
||||
<a name="id2814393"></a>
|
||||
<a class="link" href="poly.html#fusion.functional.concepts.poly.refinement_of">Refinement
|
||||
<a name="fusion.functional.concepts.poly.refinement_of"></a><h5>
|
||||
<a name="id656506"></a>
|
||||
<a href="poly.html#fusion.functional.concepts.poly.refinement_of">Refinement
|
||||
of</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li><a class="link" href="reg_callable.html" title="Regular Callable Object">Regular Callable
|
||||
<li><a href="reg_callable.html" title=" Regular Callable
|
||||
Object">Regular Callable
|
||||
Object</a></li>
|
||||
<li><a class="link" href="def_callable.html" title="Deferred Callable Object">Deferred Callable
|
||||
<li><a href="def_callable.html" title=" Deferred
|
||||
Callable Object">Deferred Callable
|
||||
Object</a></li>
|
||||
</ul></div>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">F</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt></span></dt>
|
||||
<dd><p>
|
||||
A possibly const-qualified Polymorphic Function Object type
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt>
|
||||
<dd><p>
|
||||
An object or reference to an object of type F
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Argument types
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">a1</span>
|
||||
<span class="special">...</span><span class="identifier">aN</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">a1</span>
|
||||
<span class="special">...</span><span class="identifier">aN</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Objects or references to objects with types <code class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></code>
|
||||
Objects or references to objects with types <tt class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></tt>
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">T1</span>
|
||||
<span class="special">...</span><span class="identifier">TN</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">T1</span>
|
||||
<span class="special">...</span><span class="identifier">TN</span></tt></span></dt>
|
||||
<dd><p>
|
||||
<code class="computeroutput"><span class="identifier">T</span></code>i is <code class="computeroutput"><span class="identifier">A</span></code>i <code class="computeroutput"><span class="special">&</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">a</span></code>i is an LValue,
|
||||
same as <code class="computeroutput"><span class="identifier">A</span></code>i, otherwise
|
||||
<tt class="computeroutput"><span class="identifier">T</span></tt>i is <tt class="computeroutput"><span class="identifier">A</span></tt>i <tt class="computeroutput"><span class="special">&</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">a</span></tt>i is an LValue,
|
||||
same as <tt class="computeroutput"><span class="identifier">A</span></tt>i, otherwise
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.functional.concepts.poly.expression_requirements"></a><h6>
|
||||
<a name="id2814654"></a>
|
||||
<a class="link" href="poly.html#fusion.functional.concepts.poly.expression_requirements">Expression
|
||||
<a name="fusion.functional.concepts.poly.expression_requirements"></a><h5>
|
||||
<a name="id656797"></a>
|
||||
<a href="poly.html#fusion.functional.concepts.poly.expression_requirements">Expression
|
||||
requirements</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@ -108,15 +113,15 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">a1</span><span class="special">,</span>
|
||||
<span class="special">...</span><span class="identifier">aN</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">a1</span><span class="special">,</span>
|
||||
<span class="special">...</span><span class="identifier">aN</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">result_of</span><span class="special"><</span>
|
||||
<tt class="computeroutput"><span class="identifier">result_of</span><span class="special"><</span>
|
||||
<span class="identifier">F</span><span class="special">(</span><span class="identifier">T1</span><span class="special">,</span>
|
||||
<span class="special">...</span><span class="identifier">TN</span><span class="special">)</span> <span class="special">>::</span><span class="identifier">type</span></code>
|
||||
<span class="special">...</span><span class="identifier">TN</span><span class="special">)</span> <span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -126,10 +131,10 @@
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.functional.concepts.poly.models"></a><h6>
|
||||
<a name="id2814834"></a>
|
||||
<a class="link" href="poly.html#fusion.functional.concepts.poly.models">Models</a>
|
||||
</h6>
|
||||
<a name="fusion.functional.concepts.poly.models"></a><h5>
|
||||
<a name="id656995"></a>
|
||||
<a href="poly.html#fusion.functional.concepts.poly.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li>
|
||||
function pointers
|
||||
@ -138,13 +143,13 @@
|
||||
function objects of the Standard Library
|
||||
</li>
|
||||
<li>
|
||||
all Fusion <a class="link" href="../adapters.html" title="Adapters">functional adapters</a>
|
||||
all Fusion <a href="../adapters.html" title=" Adapters">functional adapters</a>
|
||||
</li>
|
||||
</ul></div>
|
||||
<a name="fusion.functional.concepts.poly.examples"></a><h6>
|
||||
<a name="id2814879"></a>
|
||||
<a class="link" href="poly.html#fusion.functional.concepts.poly.examples">Examples</a>
|
||||
</h6>
|
||||
<a name="fusion.functional.concepts.poly.examples"></a><h5>
|
||||
<a name="id657049"></a>
|
||||
<a href="poly.html#fusion.functional.concepts.poly.examples">Examples</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="special">&</span> <span class="identifier">a_free_function</span>
|
||||
<span class="special">&</span> <span class="identifier">a_class</span><span class="special">::</span><span class="identifier">a_static_member_function</span>
|
||||
@ -152,7 +157,8 @@
|
||||
<span class="comment">// using namespace boost;
|
||||
</span><span class="identifier">bind</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">less</span><span class="special"><</span><span class="keyword">int</span><span class="special">>(),</span> <span class="identifier">_1</span><span class="special">,</span> <span class="number">5</span><span class="special">)</span>
|
||||
<span class="comment">// Note: Boost.Lambda expressions don't work with __boost_result_of__
|
||||
</span><span class="identifier">fusion</span><span class="special">::</span><a class="link" href="../generation/functions/mk_fused_fobj.html" title="make_fused_function_object"><code class="computeroutput"><span class="identifier">make_fused_function_object</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">less</span><span class="special"><</span><span class="keyword">int</span><span class="special">>())</span>
|
||||
</span><span class="identifier">fusion</span><span class="special">::</span><a href="../generation/functions/mk_fused_fobj.html" title="
|
||||
make_fused_function_object"><tt class="computeroutput"><span class="identifier">make_fused_function_object</span></tt></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">less</span><span class="special"><</span><span class="keyword">int</span><span class="special">>())</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
@ -1,21 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Regular Callable Object</title>
|
||||
<title> Regular Callable
|
||||
Object</title>
|
||||
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../concepts.html" title="Concepts">
|
||||
<link rel="prev" href="callable.html" title="Callable Object">
|
||||
<link rel="next" href="def_callable.html" title="Deferred Callable Object">
|
||||
<link rel="prev" href="callable.html" title=" Callable Object">
|
||||
<link rel="next" href="def_callable.html" title=" Deferred
|
||||
Callable Object">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</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>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,53 +26,53 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.functional.concepts.reg_callable"></a><a class="link" href="reg_callable.html" title="Regular Callable Object"> Regular Callable
|
||||
Object</a>
|
||||
</h4></div></div></div>
|
||||
<a name="fusion.functional.concepts.reg_callable.description"></a><h6>
|
||||
<a name="id2812945"></a>
|
||||
<a class="link" href="reg_callable.html#fusion.functional.concepts.reg_callable.description">Description</a>
|
||||
</h6>
|
||||
<a name="fusion.functional.concepts.reg_callable"></a><a href="reg_callable.html" title=" Regular Callable
|
||||
Object"> Regular Callable
|
||||
Object</a></h4></div></div></div>
|
||||
<a name="fusion.functional.concepts.reg_callable.description"></a><h5>
|
||||
<a name="id654884"></a>
|
||||
<a href="reg_callable.html#fusion.functional.concepts.reg_callable.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
A non-member-pointer <a class="link" href="callable.html" title="Callable Object">Callable
|
||||
A non-member-pointer <a href="callable.html" title=" Callable Object">Callable
|
||||
Object</a> type: A pointer to a function or a class type whose objects
|
||||
can appear immediately to the left of a function call operator.
|
||||
</p>
|
||||
<a name="fusion.functional.concepts.reg_callable.refinement_of"></a><h6>
|
||||
<a name="id2812981"></a>
|
||||
<a class="link" href="reg_callable.html#fusion.functional.concepts.reg_callable.refinement_of">Refinement
|
||||
<a name="fusion.functional.concepts.reg_callable.refinement_of"></a><h5>
|
||||
<a name="id654927"></a>
|
||||
<a href="reg_callable.html#fusion.functional.concepts.reg_callable.refinement_of">Refinement
|
||||
of</a>
|
||||
</h6>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a class="link" href="callable.html" title="Callable Object">Callable Object</a></li></ul></div>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="callable.html" title=" Callable Object">Callable Object</a></li></ul></div>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">F</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt></span></dt>
|
||||
<dd><p>
|
||||
A possibly const qualified Deferred Callable Object type
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt>
|
||||
<dd><p>
|
||||
An object or reference to an object of type F
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Argument types
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">a1</span>
|
||||
<span class="special">...</span><span class="identifier">aN</span></code></span></dt>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">a1</span>
|
||||
<span class="special">...</span><span class="identifier">aN</span></tt></span></dt>
|
||||
<dd><p>
|
||||
Objects or references to objects with types <code class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></code>
|
||||
Objects or references to objects with types <tt class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></tt>
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.functional.concepts.reg_callable.expression_requirements"></a><h6>
|
||||
<a name="id2813150"></a>
|
||||
<a class="link" href="reg_callable.html#fusion.functional.concepts.reg_callable.expression_requirements">Expression
|
||||
<a name="fusion.functional.concepts.reg_callable.expression_requirements"></a><h5>
|
||||
<a name="id655114"></a>
|
||||
<a href="reg_callable.html#fusion.functional.concepts.reg_callable.expression_requirements">Expression
|
||||
requirements</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@ -97,8 +99,8 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">a1</span><span class="special">,</span>
|
||||
<span class="special">...</span><span class="identifier">aN</span><span class="special">)</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">a1</span><span class="special">,</span>
|
||||
<span class="special">...</span><span class="identifier">aN</span><span class="special">)</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -113,10 +115,10 @@
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.functional.concepts.reg_callable.models"></a><h6>
|
||||
<a name="id2813272"></a>
|
||||
<a class="link" href="reg_callable.html#fusion.functional.concepts.reg_callable.models">Models</a>
|
||||
</h6>
|
||||
<a name="fusion.functional.concepts.reg_callable.models"></a><h5>
|
||||
<a name="id655250"></a>
|
||||
<a href="reg_callable.html#fusion.functional.concepts.reg_callable.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li>
|
||||
function pointer types
|
||||
@ -125,10 +127,10 @@
|
||||
all kinds of function objects
|
||||
</li>
|
||||
</ul></div>
|
||||
<a name="fusion.functional.concepts.reg_callable.examples"></a><h6>
|
||||
<a name="id2813305"></a>
|
||||
<a class="link" href="reg_callable.html#fusion.functional.concepts.reg_callable.examples">Examples</a>
|
||||
</h6>
|
||||
<a name="fusion.functional.concepts.reg_callable.examples"></a><h5>
|
||||
<a name="id655288"></a>
|
||||
<a href="reg_callable.html#fusion.functional.concepts.reg_callable.examples">Examples</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="special">&</span> <span class="identifier">a_free_function</span>
|
||||
<span class="special">&</span> <span class="identifier">a_class</span><span class="special">::</span><span class="identifier">a_static_member_function</span>
|
||||
@ -136,7 +138,8 @@
|
||||
<span class="comment">// using namespace boost;
|
||||
</span><span class="identifier">bind</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">less</span><span class="special"><</span><span class="keyword">int</span><span class="special">>(),</span> <span class="identifier">_1</span><span class="special">,</span> <span class="number">5</span><span class="special">)</span>
|
||||
<span class="identifier">lambda</span><span class="special">::</span><span class="identifier">_1</span> <span class="special">+=</span> <span class="identifier">lambda</span><span class="special">::</span><span class="identifier">_2</span><span class="special">;</span>
|
||||
<span class="identifier">fusion</span><span class="special">::</span><a class="link" href="../generation/functions/mk_fused_fobj.html" title="make_fused_function_object"><code class="computeroutput"><span class="identifier">make_fused_function_object</span></code></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">less</span><span class="special"><</span><span class="keyword">int</span><span class="special">>())</span>
|
||||
<span class="identifier">fusion</span><span class="special">::</span><a href="../generation/functions/mk_fused_fobj.html" title="
|
||||
make_fused_function_object"><tt class="computeroutput"><span class="identifier">make_fused_function_object</span></tt></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">less</span><span class="special"><</span><span class="keyword">int</span><span class="special">>())</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
Reference in New Issue
Block a user