1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>copy</title> 5<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.2"> 8<link rel="up" href="../metafunctions.html" title="Metafunctions"> 9<link rel="prev" href="../metafunctions.html" title="Metafunctions"> 10<link rel="next" href="move.html" title="move"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> 15<td align="center"><a href="../../../../../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="move.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h5 class="title"> 27<a name="fusion.algorithm.auxiliary.metafunctions.copy"></a><a class="link" href="copy.html" title="copy">copy</a> 28</h5></div></div></div> 29<h6> 30<a name="fusion.algorithm.auxiliary.metafunctions.copy.h0"></a> 31 <span class="phrase"><a name="fusion.algorithm.auxiliary.metafunctions.copy.description"></a></span><a class="link" href="copy.html#fusion.algorithm.auxiliary.metafunctions.copy.description">Description</a> 32 </h6> 33<p> 34 A metafunction returning the result type of applying <a class="link" href="../functions/copy.html" title="copy"><code class="computeroutput"><span class="identifier">copy</span></code></a>, which is always <code class="computeroutput"><span class="keyword">void</span></code>. 35 </p> 36<h6> 37<a name="fusion.algorithm.auxiliary.metafunctions.copy.h1"></a> 38 <span class="phrase"><a name="fusion.algorithm.auxiliary.metafunctions.copy.synopsis"></a></span><a class="link" href="copy.html#fusion.algorithm.auxiliary.metafunctions.copy.synopsis">Synopsis</a> 39 </h6> 40<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Seq1</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Seq2</span><span class="special">></span> 41<span class="keyword">struct</span> <span class="identifier">copy</span> 42<span class="special">{</span> 43 <span class="keyword">typedef</span> <span class="keyword">void</span> <span class="identifier">type</span><span class="special">;</span> 44<span class="special">};</span> 45</pre> 46<div class="table"> 47<a name="fusion.algorithm.auxiliary.metafunctions.copy.t0"></a><p class="title"><b>Table 1.38. Parameters</b></p> 48<div class="table-contents"><table class="table" summary="Parameters"> 49<colgroup> 50<col> 51<col> 52<col> 53</colgroup> 54<thead><tr> 55<th> 56 <p> 57 Parameter 58 </p> 59 </th> 60<th> 61 <p> 62 Requirement 63 </p> 64 </th> 65<th> 66 <p> 67 Description 68 </p> 69 </th> 70</tr></thead> 71<tbody> 72<tr> 73<td> 74 <p> 75 <code class="computeroutput"><span class="identifier">Seq1</span></code> 76 </p> 77 </td> 78<td> 79 <p> 80 A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward 81 Sequence</a> 82 </p> 83 </td> 84<td> 85 <p> 86 Operation's argument 87 </p> 88 </td> 89</tr> 90<tr> 91<td> 92 <p> 93 <code class="computeroutput"><span class="identifier">Seq2</span></code> 94 </p> 95 </td> 96<td> 97 <p> 98 A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward 99 Sequence</a> 100 </p> 101 </td> 102<td> 103 <p> 104 Operation's argument 105 </p> 106 </td> 107</tr> 108</tbody> 109</table></div> 110</div> 111<br class="table-break"><h6> 112<a name="fusion.algorithm.auxiliary.metafunctions.copy.h2"></a> 113 <span class="phrase"><a name="fusion.algorithm.auxiliary.metafunctions.copy.expression_semantics"></a></span><a class="link" href="copy.html#fusion.algorithm.auxiliary.metafunctions.copy.expression_semantics">Expression 114 Semantics</a> 115 </h6> 116<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">copy</span><span class="special"><</span><span class="identifier">Seq1</span><span class="special">,</span> <span class="identifier">Seq2</span><span class="special">>::</span><span class="identifier">type</span> 117</pre> 118<p> 119 <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">void</span></code> 120 iff both of <code class="computeroutput"><span class="identifier">Seq1</span></code> and 121 <code class="computeroutput"><span class="identifier">Seq2</span></code> are sequence. Otherwise, 122 none. 123 </p> 124<p> 125 <span class="bold"><strong>Semantics</strong></span>: Returns the return type of 126 <a class="link" href="../functions/copy.html" title="copy"><code class="computeroutput"><span class="identifier">copy</span></code></a> for 2 sequences of types 127 <code class="computeroutput"><span class="identifier">Seq1</span></code> and <code class="computeroutput"><span class="identifier">Seq2</span></code>. 128 </p> 129<h6> 130<a name="fusion.algorithm.auxiliary.metafunctions.copy.h3"></a> 131 <span class="phrase"><a name="fusion.algorithm.auxiliary.metafunctions.copy.complexity"></a></span><a class="link" href="copy.html#fusion.algorithm.auxiliary.metafunctions.copy.complexity">Complexity</a> 132 </h6> 133<p> 134 Constant. 135 </p> 136<h6> 137<a name="fusion.algorithm.auxiliary.metafunctions.copy.h4"></a> 138 <span class="phrase"><a name="fusion.algorithm.auxiliary.metafunctions.copy.header"></a></span><a class="link" href="copy.html#fusion.algorithm.auxiliary.metafunctions.copy.header">Header</a> 139 </h6> 140<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">algorithm</span><span class="special">/</span><span class="identifier">auxiliary</span><span class="special">/</span><span class="identifier">copy</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> 141<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">copy</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> 142</pre> 143</div> 144<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 145<td align="left"></td> 146<td align="right"><div class="copyright-footer">Copyright © 2001-2006, 2011, 2012 Joel de Guzman, 147 Dan Marsden, Tobias Schwinger<p> 148 Distributed under the Boost Software License, Version 1.0. (See accompanying 149 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 150 </p> 151</div></td> 152</tr></table> 153<hr> 154<div class="spirit-nav"> 155<a accesskey="p" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="move.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 156</div> 157</body> 158</html> 159