• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>insert_range</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.html" title="insert">
10<link rel="next" href="join.html" title="join">
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.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="join.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.insert_range"></a><a class="link" href="insert_range.html" title="insert_range">insert_range</a>
28</h5></div></div></div>
29<h6>
30<a name="fusion.algorithm.transformation.metafunctions.insert_range.h0"></a>
31            <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.insert_range.description"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.description">Description</a>
32          </h6>
33<p>
34            Returns the result type of <a class="link" href="../functions/insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">insert_range</span></code></a>, given the input
35            sequence, position iterator and insertion range types.
36          </p>
37<h6>
38<a name="fusion.algorithm.transformation.metafunctions.insert_range.h1"></a>
39            <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.insert_range.synopsis"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.synopsis">Synopsis</a>
40          </h6>
41<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</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">Range</span>
45    <span class="special">&gt;</span>
46<span class="keyword">struct</span> <span class="identifier">insert_range</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>
50</pre>
51<div class="table">
52<a name="fusion.algorithm.transformation.metafunctions.insert_range.t0"></a><p class="title"><b>Table 1.100. Parameters</b></p>
53<div class="table-contents"><table class="table" summary="Parameters">
54<colgroup>
55<col>
56<col>
57<col>
58</colgroup>
59<thead><tr>
60<th>
61                    <p>
62                      Parameter
63                    </p>
64                  </th>
65<th>
66                    <p>
67                      Requirement
68                    </p>
69                  </th>
70<th>
71                    <p>
72                      Description
73                    </p>
74                  </th>
75</tr></thead>
76<tbody>
77<tr>
78<td>
79                    <p>
80                      <code class="computeroutput"><span class="identifier">Sequence</span></code>
81                    </p>
82                  </td>
83<td>
84                    <p>
85                      A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward
86                      Sequence</a>
87                    </p>
88                  </td>
89<td>
90                    <p>
91                      Operation's argument
92                    </p>
93                  </td>
94</tr>
95<tr>
96<td>
97                    <p>
98                      <code class="computeroutput"><span class="identifier">Position</span></code>
99                    </p>
100                  </td>
101<td>
102                    <p>
103                      A model of <a class="link" href="../../../iterator/concepts/forward_iterator.html" title="Forward Iterator">Forward
104                      Iterator</a>
105                    </p>
106                  </td>
107<td>
108                    <p>
109                      Operation's argument
110                    </p>
111                  </td>
112</tr>
113<tr>
114<td>
115                    <p>
116                      <code class="computeroutput"><span class="identifier">Range</span></code>
117                    </p>
118                  </td>
119<td>
120                    <p>
121                      A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward
122                      Sequence</a>
123                    </p>
124                  </td>
125<td>
126                    <p>
127                      Operation's argument
128                    </p>
129                  </td>
130</tr>
131</tbody>
132</table></div>
133</div>
134<br class="table-break"><h6>
135<a name="fusion.algorithm.transformation.metafunctions.insert_range.h2"></a>
136            <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.insert_range.expression_semantics"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.expression_semantics">Expression
137            Semantics</a>
138          </h6>
139<pre class="programlisting"><a class="link" href="insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert_range</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Position</span><span class="special">,</span> <span class="identifier">Range</span><span class="special">&gt;::</span><span class="identifier">type</span>
140</pre>
141<p>
142            <span class="bold"><strong>Return type</strong></span>:
143          </p>
144<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
145<li class="listitem">
146                A model of <a class="link" href="../../../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward
147                Sequence</a>.
148              </li>
149<li class="listitem">
150                A model of <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative
151                Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence</span></code>
152                implements the <a class="link" href="../../../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative
153                Sequence</a> model.
154              </li>
155</ul></div>
156<p>
157            <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the
158            elements of <code class="computeroutput"><span class="identifier">Range</span></code> inserted
159            at position <code class="computeroutput"><span class="identifier">Position</span></code>
160            into <code class="computeroutput"><span class="identifier">Sequence</span></code>.
161          </p>
162<h6>
163<a name="fusion.algorithm.transformation.metafunctions.insert_range.h3"></a>
164            <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.insert_range.complexity"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.complexity">Complexity</a>
165          </h6>
166<p>
167            Constant.
168          </p>
169<h6>
170<a name="fusion.algorithm.transformation.metafunctions.insert_range.h4"></a>
171            <span class="phrase"><a name="fusion.algorithm.transformation.metafunctions.insert_range.header"></a></span><a class="link" href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.header">Header</a>
172          </h6>
173<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</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_range</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
174<span class="preprocessor">#include</span> <span class="special">&lt;</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_range</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
175</pre>
176</div>
177<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
178<td align="left"></td>
179<td align="right"><div class="copyright-footer">Copyright © 2001-2006, 2011, 2012 Joel de Guzman,
180      Dan Marsden, Tobias Schwinger<p>
181        Distributed under the Boost Software License, Version 1.0. (See accompanying
182        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>)
183      </p>
184</div></td>
185</tr></table>
186<hr>
187<div class="spirit-nav">
188<a accesskey="p" href="insert.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="join.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
189</div>
190</body>
191</html>
192