1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>join</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="insert_range.html" title="insert_range"> 10<link rel="next" href="zip.html" title="zip"> 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="insert_range.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="zip.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.transformation.metafunctions.join"></a><a class="link" href="join.html" title="join">join</a> 28</h5></div></div></div> 29<h6> 30<a name="fusion.algorithm.transformation.metafunctions.join.h0"></a> 31 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.join.description"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.metafunctions.join.description">Description</a> 32 </h6> 33<p> 34 Returns the result of joining 2 sequences, given the sequence types. 35 </p> 36<h6> 37<a name="fusion.algorithm.transformation.metafunctions.join.h1"></a> 38 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.join.synopsis"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.metafunctions.join.synopsis">Synopsis</a> 39 </h6> 40<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span> 41 <span class="keyword">typename</span> <span class="identifier">LhSequence</span><span class="special">,</span> 42 <span class="keyword">typename</span> <span class="identifier">RhSequence</span> 43 <span class="special">></span> 44<span class="keyword">struct</span> <span class="identifier">join</span> 45<span class="special">{</span> 46 <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span> 47<span class="special">};</span> 48</pre> 49<h6> 50<a name="fusion.algorithm.transformation.metafunctions.join.h2"></a> 51 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.join.expression_semantics"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.metafunctions.join.expression_semantics">Expression 52 Semantics</a> 53 </h6> 54<pre class="programlisting"><a class="link" href="join.html" title="join"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">join</span></code></a><span class="special"><</span><span class="identifier">LhSequence</span><span class="special">,</span> <span class="identifier">RhSequence</span><span class="special">>::</span><span class="identifier">type</span> 55</pre> 56<p> 57 <span class="bold"><strong>Return type</strong></span>: 58 </p> 59<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 60<li class="listitem"> 61 A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward 62 Sequence</a>. 63 </li> 64<li class="listitem"> 65 A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative 66 Sequence</a> if <code class="computeroutput"><span class="identifier">LhSequence</span></code> 67 and <code class="computeroutput"><span class="identifier">RhSequence</span></code> implement 68 the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative 69 Sequence</a> model. 70 </li> 71</ul></div> 72<p> 73 <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing 74 the elements of <code class="computeroutput"><span class="identifier">LhSequence</span></code> 75 followed by the elements of <code class="computeroutput"><span class="identifier">RhSequence</span></code>. 76 The order of the elements in the 2 sequences is preserved. 77 </p> 78<h6> 79<a name="fusion.algorithm.transformation.metafunctions.join.h3"></a> 80 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.join.complexity"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.metafunctions.join.complexity">Complexity</a> 81 </h6> 82<p> 83 Constant. 84 </p> 85<h6> 86<a name="fusion.algorithm.transformation.metafunctions.join.h4"></a> 87 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.join.header"></a></span><a class="link" href="join.html#fusion.algorithm.transformation.metafunctions.join.header">Header</a> 88 </h6> 89<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">transformation</span><span class="special">/</span><span class="identifier">join</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> 90<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">join</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> 91</pre> 92</div> 93<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 94<td align="left"></td> 95<td align="right"><div class="copyright-footer">Copyright © 2001-2006, 2011, 2012 Joel de Guzman, 96 Dan Marsden, Tobias Schwinger<p> 97 Distributed under the Boost Software License, Version 1.0. (See accompanying 98 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>) 99 </p> 100</div></td> 101</tr></table> 102<hr> 103<div class="spirit-nav"> 104<a accesskey="p" href="insert_range.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="zip.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 105</div> 106</body> 107</html> 108