forked from boostorg/fusion
Sync from trunk (except adapt class)
[SVN r56714]
This commit is contained in:
@ -1,13 +1,14 @@
|
||||
<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.75.0">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
<link rel="home" 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="previous" href="../concepts.html" title="Concepts">
|
||||
<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>
|
||||
@ -22,38 +23,41 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../concepts.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="reg_callable.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section" title="Callable Object">
|
||||
<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="id745234"></a>
|
||||
<a class="link" href="callable.html#fusion.functional.concepts.callable.description">Description</a>
|
||||
</h6>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage">
|
||||
<div><div><h4 class="title">
|
||||
<a name="fusion.functional.concepts.callable"></a><a href="callable.html" title=" Callable Object"> Callable Object</a>
|
||||
</h4></div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.functional.concepts.callable.description"></a><h5>
|
||||
<a name="id609740"></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="id745250"></a>
|
||||
<a class="link" href="callable.html#fusion.functional.concepts.callable.models">Models</a>
|
||||
</h6>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
||||
<li class="listitem">
|
||||
<a name="fusion.functional.concepts.callable.models"></a><h5>
|
||||
<a name="id609771"></a>
|
||||
<a href="callable.html#fusion.functional.concepts.callable.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li>
|
||||
function pointer types
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<li>
|
||||
member (function or data) pointer types
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<li>
|
||||
all kinds of function objects
|
||||
</li>
|
||||
</ul></div>
|
||||
<a name="fusion.functional.concepts.callable.examples"></a><h6>
|
||||
<a name="id745279"></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="id609812"></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>
|
||||
<span class="special">&</span> <span class="identifier">a_class</span><span class="special">::</span><span class="identifier">a_nonstatic_data_member</span>
|
||||
@ -62,7 +66,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,13 +1,16 @@
|
||||
<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.75.0">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
<link rel="home" 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="previous" 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>
|
||||
@ -22,118 +25,113 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="reg_callable.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="poly.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section" title="Deferred Callable Object">
|
||||
<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
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage">
|
||||
<div><div><h4 class="title">
|
||||
<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><h6>
|
||||
<a name="id747801"></a>
|
||||
<a class="link" href="def_callable.html#fusion.functional.concepts.def_callable.description">Description</a>
|
||||
</h6>
|
||||
</h4></div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.functional.concepts.def_callable.description"></a><h5>
|
||||
<a name="id610834"></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="id747827"></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="id610880"></a>
|
||||
<a href="def_callable.html#fusion.functional.concepts.def_callable.refinement_of">Refinement
|
||||
of</a>
|
||||
</h6>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><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>
|
||||
<div class="variablelist" title="Notation">
|
||||
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="id748042"></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="id611182"></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>
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>
|
||||
<p>
|
||||
<th><p>
|
||||
Expression
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
</p></th>
|
||||
<th><p>
|
||||
Type
|
||||
</p>
|
||||
</th>
|
||||
</p></th>
|
||||
</tr></thead>
|
||||
<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>
|
||||
</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
|
||||
<td><p>
|
||||
<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 <tt class="computeroutput"><span class="identifier">A1</span>
|
||||
<span class="special">...</span><span class="identifier">AN</span></tt>-typed
|
||||
arguments
|
||||
</p>
|
||||
</td>
|
||||
</p></td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.functional.concepts.def_callable.models"></a><h6>
|
||||
<a name="id748179"></a>
|
||||
<a class="link" href="def_callable.html#fusion.functional.concepts.def_callable.models">Models</a>
|
||||
</h6>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
||||
<li class="listitem">
|
||||
<a class="link" href="poly.html" title="Polymorphic Function Object">Polymorphic Function
|
||||
<a name="fusion.functional.concepts.def_callable.models"></a><h5>
|
||||
<a name="id611364"></a>
|
||||
<a href="def_callable.html#fusion.functional.concepts.def_callable.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li>
|
||||
<a href="poly.html" title=" Polymorphic Function
|
||||
Object">Polymorphic Function
|
||||
Object</a> types
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<li>
|
||||
member (function or data) pointer types
|
||||
</li>
|
||||
</ul></div>
|
||||
<a name="fusion.functional.concepts.def_callable.examples"></a><h6>
|
||||
<a name="id748209"></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="id611409"></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>
|
||||
<span class="special">&</span> <span class="identifier">a_class</span><span class="special">::</span><span class="identifier">a_nonstatic_data_member</span>
|
||||
@ -142,7 +140,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,12 +1,14 @@
|
||||
<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.75.0">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
<link rel="home" 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="previous" 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">
|
||||
@ -22,66 +24,73 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="def_callable.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="../invocation.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section" title="Polymorphic Function Object">
|
||||
<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
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage">
|
||||
<div><div><h4 class="title">
|
||||
<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><h6>
|
||||
<a name="id748415"></a>
|
||||
<a class="link" href="poly.html#fusion.functional.concepts.poly.description">Description</a>
|
||||
</h6>
|
||||
</h4></div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.functional.concepts.poly.description"></a><h5>
|
||||
<a name="id611708"></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="id748437"></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="id611746"></a>
|
||||
<a href="poly.html#fusion.functional.concepts.poly.refinement_of">Refinement
|
||||
of</a>
|
||||
</h6>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
||||
<li class="listitem"><a class="link" href="reg_callable.html" title="Regular Callable Object">Regular Callable
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li><a href="reg_callable.html" title=" Regular Callable
|
||||
Object">Regular Callable
|
||||
Object</a></li>
|
||||
<li class="listitem"><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" title="Notation">
|
||||
<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="id748646"></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="id612034"></a>
|
||||
<a href="poly.html#fusion.functional.concepts.poly.expression_requirements">Expression
|
||||
requirements</a>
|
||||
</h6>
|
||||
</h5>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
@ -89,69 +98,58 @@
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>
|
||||
<p>
|
||||
<th><p>
|
||||
Expression
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
</p></th>
|
||||
<th><p>
|
||||
Return Type
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
</p></th>
|
||||
<th><p>
|
||||
Runtime Complexity
|
||||
</p>
|
||||
</th>
|
||||
</p></th>
|
||||
</tr></thead>
|
||||
<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>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">result_of</span><span class="special"><</span>
|
||||
<td><p>
|
||||
<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>
|
||||
<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>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<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>
|
||||
Unspecified
|
||||
</p>
|
||||
</td>
|
||||
</p></td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.functional.concepts.poly.models"></a><h6>
|
||||
<a name="id748798"></a>
|
||||
<a class="link" href="poly.html#fusion.functional.concepts.poly.models">Models</a>
|
||||
</h6>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
||||
<li class="listitem">
|
||||
<a name="fusion.functional.concepts.poly.models"></a><h5>
|
||||
<a name="id612231"></a>
|
||||
<a href="poly.html#fusion.functional.concepts.poly.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li>
|
||||
function pointers
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<li>
|
||||
function objects of the Standard Library
|
||||
</li>
|
||||
<li class="listitem">
|
||||
all Fusion <a class="link" href="../adapters.html" title="Adapters">functional adapters</a>
|
||||
<li>
|
||||
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="id748830"></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="id612283"></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>
|
||||
<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="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,13 +1,15 @@
|
||||
<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.75.0">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
<link rel="home" 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="previous" 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>
|
||||
@ -22,55 +24,59 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="callable.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="def_callable.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section" title="Regular Callable Object">
|
||||
<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
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage">
|
||||
<div><div><h4 class="title">
|
||||
<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><h6>
|
||||
<a name="id745514"></a>
|
||||
<a class="link" href="reg_callable.html#fusion.functional.concepts.reg_callable.description">Description</a>
|
||||
</h6>
|
||||
</h4></div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<a name="fusion.functional.concepts.reg_callable.description"></a><h5>
|
||||
<a name="id610148"></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="id745536"></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="id610189"></a>
|
||||
<a href="reg_callable.html#fusion.functional.concepts.reg_callable.refinement_of">Refinement
|
||||
of</a>
|
||||
</h6>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><a class="link" href="callable.html" title="Callable Object">Callable Object</a></li></ul></div>
|
||||
<div class="variablelist" title="Notation">
|
||||
</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="id747467"></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="id610374"></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>
|
||||
@ -78,64 +84,53 @@
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>
|
||||
<p>
|
||||
<th><p>
|
||||
Expression
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
</p></th>
|
||||
<th><p>
|
||||
Return Type
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
</p></th>
|
||||
<th><p>
|
||||
Runtime Complexity
|
||||
</p>
|
||||
</th>
|
||||
</p></th>
|
||||
</tr></thead>
|
||||
<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>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<td><p>
|
||||
<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>
|
||||
Unspecified
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
</p></td>
|
||||
<td><p>
|
||||
Unspecified
|
||||
</p>
|
||||
</td>
|
||||
</p></td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.functional.concepts.reg_callable.models"></a><h6>
|
||||
<a name="id747575"></a>
|
||||
<a class="link" href="reg_callable.html#fusion.functional.concepts.reg_callable.models">Models</a>
|
||||
</h6>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
||||
<li class="listitem">
|
||||
<a name="fusion.functional.concepts.reg_callable.models"></a><h5>
|
||||
<a name="id610508"></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
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<li>
|
||||
all kinds of function objects
|
||||
</li>
|
||||
</ul></div>
|
||||
<a name="fusion.functional.concepts.reg_callable.examples"></a><h6>
|
||||
<a name="id747599"></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="id610545"></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>
|
||||
<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="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