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