3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5 <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.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="erase_key.html" title="erase_key">
10 <link rel="next" href="insert_range.html" title="insert_range">
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>
22 <div class="spirit-nav">
23 <a accesskey="p" href="erase_key.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="insert_range.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h5 class="title">
27 <a name="fusion.algorithm.transformation.metafunctions.insert"></a><a class="link" href="insert.html" title="insert">insert</a>
28 </h5></div></div></div>
30 <a name="fusion.algorithm.transformation.metafunctions.insert.h0"></a>
31 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.insert.description"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.metafunctions.insert.description">Description</a>
34 Returns the result type of <a class="link" href="../functions/insert.html" title="insert"><code class="computeroutput"><span class="identifier">insert</span></code></a>, given the sequence,
35 position iterator and insertion types.
38 <a name="fusion.algorithm.transformation.metafunctions.insert.h1"></a>
39 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.insert.synopsis"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.metafunctions.insert.synopsis">Synopsis</a>
41 <pre class="programlisting"><span class="keyword">template</span><span class="special"><</span>
42 <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
43 <span class="keyword">typename</span> <span class="identifier">Position</span><span class="special">,</span>
44 <span class="keyword">typename</span> <span class="identifier">T</span>
45 <span class="special">></span>
46 <span class="keyword">struct</span> <span class="identifier">insert</span>
47 <span class="special">{</span>
48 <span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span>
49 <span class="special">};</span>
52 <a name="fusion.algorithm.transformation.metafunctions.insert.t0"></a><p class="title"><b>Table 1.97. Parameters</b></p>
53 <div class="table-contents"><table class="table" summary="Parameters">
80 <code class="computeroutput"><span class="identifier">Sequence</span></code>
85 A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward
98 <code class="computeroutput"><span class="identifier">Position</span></code>
103 A model of <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward
116 <code class="computeroutput"><span class="identifier">T</span></code>
133 <br class="table-break"><h6>
134 <a name="fusion.algorithm.transformation.metafunctions.insert.h2"></a>
135 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.insert.expression_semantics"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.metafunctions.insert.expression_semantics">Expression
138 <pre class="programlisting"><a class="link" href="insert.html" title="insert"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Position</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span>
141 <span class="bold"><strong>Return type</strong></span>:
143 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
144 A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward
148 <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with an
149 element of type <code class="computeroutput"><span class="identifier">T</span></code> inserted
150 at position <code class="computeroutput"><span class="identifier">Position</span></code>
151 in <code class="computeroutput"><span class="identifier">Sequence</span></code>.
154 <a name="fusion.algorithm.transformation.metafunctions.insert.h3"></a>
155 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.insert.complexity"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.metafunctions.insert.complexity">Complexity</a>
161 <a name="fusion.algorithm.transformation.metafunctions.insert.h4"></a>
162 <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.insert.header"></a></span><a class="link" href="insert.html#fusion.algorithm.transformation.metafunctions.insert.header">Header</a>
164 <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">insert</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
165 <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">insert</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
168 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
169 <td align="left"></td>
170 <td align="right"><div class="copyright-footer">Copyright © 2001-2006, 2011, 2012 Joel de Guzman,
171 Dan Marsden, Tobias Schwinger<p>
172 Distributed under the Boost Software License, Version 1.0. (See accompanying
173 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>)
178 <div class="spirit-nav">
179 <a accesskey="p" href="erase_key.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="insert_range.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>