1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5 <title>Struct template regex_token_iterator</title>
6 <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
7 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
8 <link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
9 <link rel="up" href="../../xpressive/reference.html#header.boost.xpressive.regex_token_iterator_hpp" title="Header <boost/xpressive/regex_token_iterator.hpp>">
10 <link rel="prev" href="skip.html" title="Function template skip">
11 <link rel="next" href="regex_traits_version_1_tag.html" title="Struct regex_traits_version_1_tag">
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table cellpadding="2" width="100%"><tr>
15 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
16 <td align="center"><a href="../../../../index.html">Home</a></td>
17 <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
18 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
19 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
20 <td align="center"><a href="../../../../more/index.htm">More</a></td>
23 <div class="spirit-nav">
24 <a accesskey="p" href="skip.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../xpressive/reference.html#header.boost.xpressive.regex_token_iterator_hpp"><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="regex_traits_version_1_tag.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="refentry">
27 <a name="boost.xpressive.regex_token_iterator"></a><div class="titlepage"></div>
28 <div class="refnamediv">
29 <h2><span class="refentrytitle">Struct template regex_token_iterator</span></h2>
30 <p>boost::xpressive::regex_token_iterator</p>
32 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
33 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../xpressive/reference.html#header.boost.xpressive.regex_token_iterator_hpp" title="Header <boost/xpressive/regex_token_iterator.hpp>">boost/xpressive/regex_token_iterator.hpp</a>>
35 </span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> BidiIter<span class="special">></span>
36 <span class="keyword">struct</span> <a class="link" href="regex_token_iterator.html" title="Struct template regex_token_iterator">regex_token_iterator</a> <span class="special">{</span>
37 <span class="comment">// types</span>
38 <span class="keyword">typedef</span> <a class="link" href="basic_regex.html" title="Struct template basic_regex">basic_regex</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <a name="boost.xpressive.regex_token_iterator.regex_type"></a><span class="identifier">regex_type</span><span class="special">;</span>
39 <span class="keyword">typedef</span> <span class="identifier">iterator_value</span><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span><span class="special">::</span><span class="identifier">type</span> <a name="boost.xpressive.regex_token_iterator.char_type"></a><span class="identifier">char_type</span><span class="special">;</span>
40 <span class="keyword">typedef</span> <a class="link" href="sub_match.html" title="Struct template sub_match">sub_match</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <a name="boost.xpressive.regex_token_iterator.value_type"></a><span class="identifier">value_type</span><span class="special">;</span>
41 <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> <a name="boost.xpressive.regex_token_iterator.difference_type"></a><span class="identifier">difference_type</span><span class="special">;</span>
42 <span class="keyword">typedef</span> <span class="identifier">value_type</span> <span class="keyword">const</span> <span class="special">*</span> <a name="boost.xpressive.regex_token_iterator.pointer"></a><span class="identifier">pointer</span><span class="special">;</span>
43 <span class="keyword">typedef</span> <span class="identifier">value_type</span> <span class="keyword">const</span> <span class="special">&</span> <a name="boost.xpressive.regex_token_iterator.reference"></a><span class="identifier">reference</span><span class="special">;</span>
44 <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">forward_iterator_tag</span> <a name="boost.xpressive.regex_token_iterator.iterator_category"></a><span class="identifier">iterator_category</span><span class="special">;</span>
46 <span class="comment">// <a class="link" href="regex_token_iterator.html#boost.xpressive.regex_token_iteratorconstruct-copy-destruct">construct/copy/destruct</a></span>
47 <a class="link" href="regex_token_iterator.html#idp784878128-bb"><span class="identifier">regex_token_iterator</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
48 <a class="link" href="regex_token_iterator.html#idp784879552-bb"><span class="identifier">regex_token_iterator</span></a><span class="special">(</span><span class="identifier">BidiIter</span><span class="special">,</span> <span class="identifier">BidiIter</span><span class="special">,</span> <a class="link" href="basic_regex.html" title="Struct template basic_regex">basic_regex</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
49 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> LetExpr<span class="special">></span>
50 <a class="link" href="regex_token_iterator.html#idp784884496-bb"><span class="identifier">regex_token_iterator</span></a><span class="special">(</span><span class="identifier">BidiIter</span><span class="special">,</span> <span class="identifier">BidiIter</span><span class="special">,</span> <a class="link" href="basic_regex.html" title="Struct template basic_regex">basic_regex</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span><span class="special">,</span>
51 <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span><span class="special">;</span>
52 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Subs<span class="special">></span>
53 <a class="link" href="regex_token_iterator.html#idp784891568-bb"><span class="identifier">regex_token_iterator</span></a><span class="special">(</span><span class="identifier">BidiIter</span><span class="special">,</span> <span class="identifier">BidiIter</span><span class="special">,</span> <a class="link" href="basic_regex.html" title="Struct template basic_regex">basic_regex</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span><span class="special">,</span>
54 <span class="identifier">Subs</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">,</span>
55 <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">)</span><span class="special">;</span>
56 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Subs<span class="special">,</span> <span class="keyword">typename</span> LetExpr<span class="special">></span>
57 <a class="link" href="regex_token_iterator.html#idp784901120-bb"><span class="identifier">regex_token_iterator</span></a><span class="special">(</span><span class="identifier">BidiIter</span><span class="special">,</span> <span class="identifier">BidiIter</span><span class="special">,</span> <a class="link" href="basic_regex.html" title="Struct template basic_regex">basic_regex</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span><span class="special">,</span>
58 <span class="identifier">Subs</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">,</span>
59 <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">)</span><span class="special">;</span>
60 <a class="link" href="regex_token_iterator.html#idp784912512-bb"><span class="identifier">regex_token_iterator</span></a><span class="special">(</span><a class="link" href="regex_token_iterator.html" title="Struct template regex_token_iterator">regex_token_iterator</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
61 <a class="link" href="regex_token_iterator.html" title="Struct template regex_token_iterator">regex_token_iterator</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="special">&</span>
62 <a class="link" href="regex_token_iterator.html#idp784914896-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><a class="link" href="regex_token_iterator.html" title="Struct template regex_token_iterator">regex_token_iterator</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
64 <span class="comment">// <a class="link" href="regex_token_iterator.html#idp784870576-bb">public member functions</a></span>
65 <span class="identifier">value_type</span> <span class="keyword">const</span> <span class="special">&</span> <a class="link" href="regex_token_iterator.html#idp784871136-bb"><span class="keyword">operator</span><span class="special">*</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
66 <span class="identifier">value_type</span> <span class="keyword">const</span> <span class="special">*</span> <a class="link" href="regex_token_iterator.html#idp784872256-bb"><span class="keyword">operator</span><span class="special">-></span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
67 <a class="link" href="regex_token_iterator.html" title="Struct template regex_token_iterator">regex_token_iterator</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="special">&</span> <a class="link" href="regex_token_iterator.html#idp784873376-bb"><span class="keyword">operator</span><span class="special">++</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
68 <a class="link" href="regex_token_iterator.html" title="Struct template regex_token_iterator">regex_token_iterator</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <a class="link" href="regex_token_iterator.html#idp784876144-bb"><span class="keyword">operator</span><span class="special">++</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span>
69 <span class="special">}</span><span class="special">;</span></pre></div>
70 <div class="refsect1">
71 <a name="idp630702224"></a><h2>Description</h2>
72 <div class="refsect2">
73 <a name="idp630702640"></a><h3>
74 <a name="boost.xpressive.regex_token_iteratorconstruct-copy-destruct"></a><code class="computeroutput">regex_token_iterator</code>
76 construct/copy/destruct</h3>
77 <div class="orderedlist"><ol class="orderedlist" type="1">
79 <pre class="literallayout"><a name="idp784878128-bb"></a><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
82 <div class="variablelist"><table border="0" class="variablelist compact">
84 <col align="left" valign="top">
88 <td><p><span class="term">Postconditions:</span></p></td>
89 <td><p><code class="computeroutput">*this</code> is the end of sequence iterator. </p></td>
94 <pre class="literallayout"><a name="idp784879552-bb"></a><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">BidiIter</span> begin<span class="special">,</span> <span class="identifier">BidiIter</span> end<span class="special">,</span>
95 <a class="link" href="basic_regex.html" title="Struct template basic_regex">basic_regex</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span> rex<span class="special">)</span><span class="special">;</span></pre>
99 <div class="variablelist"><table border="0" class="variablelist compact">
101 <col align="left" valign="top">
106 <td><p><span class="term">Parameters:</span></p></td>
107 <td><div class="variablelist"><table border="0" class="variablelist compact">
109 <col align="left" valign="top">
114 <td><p><span class="term"><code class="computeroutput">begin</code></span></p></td>
115 <td><p>The beginning of the character range to search. </p></td>
118 <td><p><span class="term"><code class="computeroutput">end</code></span></p></td>
119 <td><p>The end of the character range to search. </p></td>
122 <td><p><span class="term"><code class="computeroutput">rex</code></span></p></td>
123 <td><p>The regex pattern to search for. </p></td>
129 <td><p><span class="term">Requires:</span></p></td>
130 <td><p><code class="computeroutput"></code>[begin,end) is a valid range. </p></td>
135 <li class="listitem">
136 <pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> LetExpr<span class="special">></span>
137 <a name="idp784884496-bb"></a><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">BidiIter</span> begin<span class="special">,</span> <span class="identifier">BidiIter</span> end<span class="special">,</span>
138 <a class="link" href="basic_regex.html" title="Struct template basic_regex">basic_regex</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span> rex<span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> args<span class="special">)</span><span class="special">;</span></pre>
142 <div class="variablelist"><table border="0" class="variablelist compact">
144 <col align="left" valign="top">
149 <td><p><span class="term">Parameters:</span></p></td>
150 <td><div class="variablelist"><table border="0" class="variablelist compact">
152 <col align="left" valign="top">
157 <td><p><span class="term"><code class="computeroutput">args</code></span></p></td>
158 <td><p>A let() expression with argument bindings for semantic actions. </p></td>
161 <td><p><span class="term"><code class="computeroutput">begin</code></span></p></td>
162 <td><p>The beginning of the character range to search. </p></td>
165 <td><p><span class="term"><code class="computeroutput">end</code></span></p></td>
166 <td><p>The end of the character range to search. </p></td>
169 <td><p><span class="term"><code class="computeroutput">rex</code></span></p></td>
170 <td><p>The regex pattern to search for. </p></td>
176 <td><p><span class="term">Requires:</span></p></td>
177 <td><p><code class="computeroutput"></code>[begin,end) is a valid range. </p></td>
182 <li class="listitem">
183 <pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Subs<span class="special">></span>
184 <a name="idp784891568-bb"></a><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">BidiIter</span> begin<span class="special">,</span> <span class="identifier">BidiIter</span> end<span class="special">,</span>
185 <a class="link" href="basic_regex.html" title="Struct template basic_regex">basic_regex</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span> rex<span class="special">,</span>
186 <span class="identifier">Subs</span> <span class="keyword">const</span> <span class="special">&</span> subs<span class="special">,</span>
187 <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> flags <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">)</span><span class="special">;</span></pre>
191 <div class="variablelist"><table border="0" class="variablelist compact">
193 <col align="left" valign="top">
198 <td><p><span class="term">Parameters:</span></p></td>
199 <td><div class="variablelist"><table border="0" class="variablelist compact">
201 <col align="left" valign="top">
206 <td><p><span class="term"><code class="computeroutput">begin</code></span></p></td>
207 <td><p>The beginning of the character range to search. </p></td>
210 <td><p><span class="term"><code class="computeroutput">end</code></span></p></td>
211 <td><p>The end of the character range to search. </p></td>
214 <td><p><span class="term"><code class="computeroutput">flags</code></span></p></td>
215 <td><p>Optional match flags, used to control how the expression is matched against the sequence. (See match_flag_type.) </p></td>
218 <td><p><span class="term"><code class="computeroutput">rex</code></span></p></td>
219 <td><p>The regex pattern to search for. </p></td>
222 <td><p><span class="term"><code class="computeroutput">subs</code></span></p></td>
223 <td><p>A range of integers designating sub-matches to be treated as tokens. </p></td>
229 <td><p><span class="term">Requires:</span></p></td>
231 <p><code class="computeroutput"></code>[begin,end) is a valid range. </p>
232 <p><code class="computeroutput">subs</code> is either an integer greater or equal to -1, or else an array or non-empty <code class="computeroutput">std::vector<></code> of such integers. </p>
238 <li class="listitem">
239 <pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Subs<span class="special">,</span> <span class="keyword">typename</span> LetExpr<span class="special">></span>
240 <a name="idp784901120-bb"></a><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">BidiIter</span> begin<span class="special">,</span> <span class="identifier">BidiIter</span> end<span class="special">,</span>
241 <a class="link" href="basic_regex.html" title="Struct template basic_regex">basic_regex</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span> rex<span class="special">,</span>
242 <span class="identifier">Subs</span> <span class="keyword">const</span> <span class="special">&</span> subs<span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> args<span class="special">,</span>
243 <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> flags <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">)</span><span class="special">;</span></pre>
247 <div class="variablelist"><table border="0" class="variablelist compact">
249 <col align="left" valign="top">
254 <td><p><span class="term">Parameters:</span></p></td>
255 <td><div class="variablelist"><table border="0" class="variablelist compact">
257 <col align="left" valign="top">
262 <td><p><span class="term"><code class="computeroutput">args</code></span></p></td>
263 <td><p>A let() expression with argument bindings for semantic actions. </p></td>
266 <td><p><span class="term"><code class="computeroutput">begin</code></span></p></td>
267 <td><p>The beginning of the character range to search. </p></td>
270 <td><p><span class="term"><code class="computeroutput">end</code></span></p></td>
271 <td><p>The end of the character range to search. </p></td>
274 <td><p><span class="term"><code class="computeroutput">flags</code></span></p></td>
275 <td><p>Optional match flags, used to control how the expression is matched against the sequence. (See match_flag_type.) </p></td>
278 <td><p><span class="term"><code class="computeroutput">rex</code></span></p></td>
279 <td><p>The regex pattern to search for. </p></td>
282 <td><p><span class="term"><code class="computeroutput">subs</code></span></p></td>
283 <td><p>A range of integers designating sub-matches to be treated as tokens. </p></td>
289 <td><p><span class="term">Requires:</span></p></td>
291 <p><code class="computeroutput"></code>[begin,end) is a valid range. </p>
292 <p><code class="computeroutput">subs</code> is either an integer greater or equal to -1, or else an array or non-empty <code class="computeroutput">std::vector<></code> of such integers. </p>
298 <li class="listitem">
299 <pre class="literallayout"><a name="idp784912512-bb"></a><span class="identifier">regex_token_iterator</span><span class="special">(</span><a class="link" href="regex_token_iterator.html" title="Struct template regex_token_iterator">regex_token_iterator</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span> that<span class="special">)</span><span class="special">;</span></pre>
302 <div class="variablelist"><table border="0" class="variablelist compact">
304 <col align="left" valign="top">
308 <td><p><span class="term">Postconditions:</span></p></td>
309 <td><p><code class="computeroutput">*this == that</code> </p></td>
313 <li class="listitem">
314 <pre class="literallayout"><a class="link" href="regex_token_iterator.html" title="Struct template regex_token_iterator">regex_token_iterator</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="special">&</span>
315 <a name="idp784914896-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><a class="link" href="regex_token_iterator.html" title="Struct template regex_token_iterator">regex_token_iterator</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span> that<span class="special">)</span><span class="special">;</span></pre>
318 <div class="variablelist"><table border="0" class="variablelist compact">
320 <col align="left" valign="top">
324 <td><p><span class="term">Postconditions:</span></p></td>
325 <td><p><code class="computeroutput">*this == that</code> </p></td>
331 <div class="refsect2">
332 <a name="idp630842800"></a><h3>
333 <a name="idp784870576-bb"></a><code class="computeroutput">regex_token_iterator</code> public member functions</h3>
334 <div class="orderedlist"><ol class="orderedlist" type="1">
335 <li class="listitem"><pre class="literallayout"><span class="identifier">value_type</span> <span class="keyword">const</span> <span class="special">&</span> <a name="idp784871136-bb"></a><span class="keyword">operator</span><span class="special">*</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
336 <li class="listitem"><pre class="literallayout"><span class="identifier">value_type</span> <span class="keyword">const</span> <span class="special">*</span> <a name="idp784872256-bb"></a><span class="keyword">operator</span><span class="special">-></span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
337 <li class="listitem">
338 <pre class="literallayout"><a class="link" href="regex_token_iterator.html" title="Struct template regex_token_iterator">regex_token_iterator</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <span class="special">&</span> <a name="idp784873376-bb"></a><span class="keyword">operator</span><span class="special">++</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
339 <p>If N == -1 then sets *this equal to the end of sequence iterator. Otherwise if N+1 < subs.size(), then increments N and sets result equal to ((subs[N] == -1) ? value_type(what.prefix().str()) : value_type(what[subs[N]].str())). Otherwise if what.prefix().first != what[0].second and if the element match_prev_avail is not set in flags then sets it. Then locates the next match as if by calling regex_search(what[0].second, end, what, *pre, flags), with the following variation: in the event that the previous match found was of zero length (what[0].length() == 0) then attempts to find a non-zero length match starting at what[0].second, only if that fails and provided what[0].second != suffix().second does it look for a (possibly zero length) match starting from what[0].second + 1. If such a match is found then sets N equal to zero, and sets result equal to ((subs[N] == -1) ? value_type(what.prefix().str()) : value_type(what[subs[N]].str())). Otherwise if no further matches were found, then let last_end be the endpoint of the last match that was found. Then if last_end != end and subs[0] == -1 sets N equal to -1 and sets result equal to value_type(last_end, end). Otherwise sets *this equal to the end of sequence iterator. </p>
341 <li class="listitem"><pre class="literallayout"><a class="link" href="regex_token_iterator.html" title="Struct template regex_token_iterator">regex_token_iterator</a><span class="special"><</span> <span class="identifier">BidiIter</span> <span class="special">></span> <a name="idp784876144-bb"></a><span class="keyword">operator</span><span class="special">++</span><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span></pre></li>
346 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
347 <td align="left"></td>
348 <td align="right"><div class="copyright-footer">Copyright © 2007 Eric Niebler<p>
349 Distributed under the Boost Software License, Version 1.0. (See accompanying
350 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>)
355 <div class="spirit-nav">
356 <a accesskey="p" href="skip.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../xpressive/reference.html#header.boost.xpressive.regex_token_iterator_hpp"><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="regex_traits_version_1_tag.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>