forked from boostorg/fusion
Fusion: added nview and friends, docs and tests
[SVN r56377]
This commit is contained in:
@ -1,14 +1,12 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>
|
||||
make_unfused</title>
|
||||
<title>make_unfused</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.0">
|
||||
<link rel="home" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="previous" href="mk_fused_fobj.html" title="
|
||||
make_fused_function_object">
|
||||
<link rel="prev" href="mk_fused_fobj.html" title="make_fused_function_object">
|
||||
<link rel="next" href="../metafunctions.html" title="Metafunctions">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
@ -24,38 +22,32 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="mk_fused_fobj.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.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="../metafunctions.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage">
|
||||
<div><div><h5 class="title">
|
||||
<a name="fusion.functional.generation.functions.mk_unfused"></a><a href="mk_unfused.html" title="
|
||||
make_unfused">
|
||||
<div class="section" title="make_unfused">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.functional.generation.functions.mk_unfused"></a><a class="link" href="mk_unfused.html" title="make_unfused">
|
||||
make_unfused</a>
|
||||
</h5></div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.functional.generation.functions.mk_unfused.description"></a><h6>
|
||||
<a name="id629079"></a>
|
||||
<a href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.description">Description</a>
|
||||
<a name="id777729"></a>
|
||||
<a class="link" href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Creates a <a href="../../adapters/unfused.html" title="unfused"><tt class="computeroutput"><span class="identifier">unfused</span></tt></a> adapter for a given,
|
||||
unary <a href="../../concepts/poly.html" title=" Polymorphic Function
|
||||
Object">Polymorphic Function
|
||||
Object</a>. The usual <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
|
||||
Creates a <a class="link" href="../../adapters/unfused.html" title="unfused"><code class="computeroutput"><span class="identifier">unfused</span></code></a> adapter for a given,
|
||||
unary <a class="link" href="../../concepts/poly.html" title="Polymorphic Function Object">Polymorphic Function
|
||||
Object</a>. The usual <a class="link" href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
|
||||
conversion</em></span></a> is applied to the target function.
|
||||
</p>
|
||||
<a name="fusion.functional.generation.functions.mk_unfused.synopsis"></a><h6>
|
||||
<a name="id629146"></a>
|
||||
<a href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.synopsis">Synopsis</a>
|
||||
<a name="id777771"></a>
|
||||
<a class="link" href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">F</span><span class="special">></span>
|
||||
<span class="keyword">inline</span> <span class="keyword">typename</span> <a href="../metafunctions/mk_unfused.html" title="
|
||||
make_unfused"><tt class="computeroutput"><span class="identifier">make_unfused</span></tt></a><span class="special"><</span><span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">inline</span> <span class="keyword">typename</span> <a class="link" href="../metafunctions/mk_unfused.html" title="make_unfused"><code class="computeroutput"><span class="identifier">make_unfused</span></code></a><span class="special"><</span><span class="identifier">F</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">make_unfused</span><span class="special">(</span><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">f</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.functional.generation.functions.mk_unfused.parameters"></a><h6>
|
||||
<a name="id629296"></a>
|
||||
<a href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.parameters">Parameters</a>
|
||||
<a name="id777878"></a>
|
||||
<a class="link" href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@ -64,53 +56,64 @@
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th><p>
|
||||
<th>
|
||||
<p>
|
||||
Parameter
|
||||
</p></th>
|
||||
<th><p>
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
Requirement
|
||||
</p></th>
|
||||
<th><p>
|
||||
</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>
|
||||
Description
|
||||
</p></th>
|
||||
</p>
|
||||
</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><p>
|
||||
<tt class="computeroutput"><span class="identifier">f</span></tt>
|
||||
</p></td>
|
||||
<td><p>
|
||||
Model of <a href="../../concepts/poly.html" title=" Polymorphic Function
|
||||
Object">Polymorphic
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">f</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Model of <a class="link" href="../../concepts/poly.html" title="Polymorphic Function Object">Polymorphic
|
||||
Function Object</a>
|
||||
</p></td>
|
||||
<td><p>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The function to transform.
|
||||
</p></td>
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.functional.generation.functions.mk_unfused.expression_semantics"></a><h6>
|
||||
<a name="id629413"></a>
|
||||
<a href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.expression_semantics">Expression
|
||||
<a name="id777968"></a>
|
||||
<a class="link" href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="identifier">make_unfused</span><span class="special">(</span><span class="identifier">f</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: A specialization of <a href="../../adapters/unfused.html" title="unfused"><tt class="computeroutput"><span class="identifier">unfused</span></tt></a>.
|
||||
<span class="bold"><strong>Return type</strong></span>: A specialization of <a class="link" href="../../adapters/unfused.html" title="unfused"><code class="computeroutput"><span class="identifier">unfused</span></code></a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns a <a href="../../adapters/unfused.html" title="unfused"><tt class="computeroutput"><span class="identifier">unfused</span></tt></a> adapter for <tt class="computeroutput"><span class="identifier">f</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns a <a class="link" href="../../adapters/unfused.html" title="unfused"><code class="computeroutput"><span class="identifier">unfused</span></code></a> adapter for <code class="computeroutput"><span class="identifier">f</span></code>.
|
||||
</p>
|
||||
<a name="fusion.functional.generation.functions.mk_unfused.header"></a><h6>
|
||||
<a name="id629534"></a>
|
||||
<a href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.header">Header</a>
|
||||
<a name="id778046"></a>
|
||||
<a class="link" href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_unfused</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">make_unfused</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.functional.generation.functions.mk_unfused.example"></a><h6>
|
||||
<a name="id629701"></a>
|
||||
<a href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.example">Example</a>
|
||||
<a name="id778166"></a>
|
||||
<a class="link" href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">fused_incrementer</span>
|
||||
<span class="special">{</span>
|
||||
@ -123,7 +126,7 @@
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Seq</span><span class="special">></span>
|
||||
<span class="keyword">void</span> <span class="keyword">operator</span><span class="special">()(</span><span class="identifier">Seq</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">s</span><span class="special">)</span> <span class="keyword">const</span>
|
||||
<span class="special">{</span>
|
||||
<a href="../../../algorithm/iteration/functions/for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">,++</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">lambda</span><span class="special">::</span><span class="identifier">_1</span><span class="special">);</span>
|
||||
<a class="link" href="../../../algorithm/iteration/functions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">,++</span><span class="identifier">boost</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="special">}</span>
|
||||
<span class="special">};</span>
|
||||
|
||||
@ -135,15 +138,14 @@
|
||||
<span class="special">}</span>
|
||||
</pre>
|
||||
<a name="fusion.functional.generation.functions.mk_unfused.see_also"></a><h6>
|
||||
<a name="id630174"></a>
|
||||
<a href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.see_also">See
|
||||
<a name="id780433"></a>
|
||||
<a class="link" href="mk_unfused.html#fusion.functional.generation.functions.mk_unfused.see_also">See
|
||||
also</a>
|
||||
</h6>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li><a href="../../adapters/unfused.html" title="unfused"><tt class="computeroutput"><span class="identifier">unfused</span></tt></a></li>
|
||||
<li><a href="../../../support/deduce.html" title="deduce"><tt class="computeroutput"><span class="identifier">deduce</span></tt></a></li>
|
||||
<li><a href="../metafunctions/mk_unfused.html" title="
|
||||
make_unfused"><tt class="computeroutput"><span class="identifier">make_unfused</span></tt></a></li>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
||||
<li class="listitem"><a class="link" href="../../adapters/unfused.html" title="unfused"><code class="computeroutput"><span class="identifier">unfused</span></code></a></li>
|
||||
<li class="listitem"><a class="link" href="../../../support/deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li>
|
||||
<li class="listitem"><a class="link" href="../metafunctions/mk_unfused.html" title="make_unfused"><code class="computeroutput"><span class="identifier">make_unfused</span></code></a></li>
|
||||
</ul></div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
Reference in New Issue
Block a user