Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > c74ab286c3d46f9b82671d206e43a74b > files > 1268

libstdc++-docs-4.6.3-2.fc15.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libstdc++: regex.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libstdc++</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a01006.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">regex.h</div>  </div>
</div>
<div class="contents">
<a href="a01006.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// class template regex -*- C++ -*-</span>
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 <span class="comment">// Copyright (C) 2010, 2011 Free Software Foundation, Inc.</span>
<a name="l00004"></a>00004 <span class="comment">//</span>
<a name="l00005"></a>00005 <span class="comment">// This file is part of the GNU ISO C++ Library.  This library is free</span>
<a name="l00006"></a>00006 <span class="comment">// software; you can redistribute it and/or modify it under the</span>
<a name="l00007"></a>00007 <span class="comment">// terms of the GNU General Public License as published by the</span>
<a name="l00008"></a>00008 <span class="comment">// Free Software Foundation; either version 3, or (at your option)</span>
<a name="l00009"></a>00009 <span class="comment">// any later version.</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="comment">// This library is distributed in the hope that it will be useful,</span>
<a name="l00012"></a>00012 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00013"></a>00013 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00014"></a>00014 <span class="comment">// GNU General Public License for more details.</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="comment">// Under Section 7 of GPL version 3, you are granted additional</span>
<a name="l00017"></a>00017 <span class="comment">// permissions described in the GCC Runtime Library Exception, version</span>
<a name="l00018"></a>00018 <span class="comment">// 3.1, as published by the Free Software Foundation.</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="comment">// You should have received a copy of the GNU General Public License and</span>
<a name="l00021"></a>00021 <span class="comment">// a copy of the GCC Runtime Library Exception along with this program;</span>
<a name="l00022"></a>00022 <span class="comment">// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see</span>
<a name="l00023"></a>00023 <span class="comment">// &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00024"></a>00024 <span class="comment"></span>
<a name="l00025"></a>00025 <span class="comment">/**</span>
<a name="l00026"></a>00026 <span class="comment"> *  @file bits/regex.h</span>
<a name="l00027"></a>00027 <span class="comment"> *  This is an internal header file, included by other library headers.</span>
<a name="l00028"></a>00028 <span class="comment"> *  Do not attempt to use it directly. @headername{regex}</span>
<a name="l00029"></a>00029 <span class="comment"> */</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="keyword">namespace </span>std _GLIBCXX_VISIBILITY(default)
<a name="l00032"></a>00032 {
<a name="l00033"></a>00033 _GLIBCXX_BEGIN_NAMESPACE_VERSION
<a name="l00034"></a>00034 <span class="comment"></span>
<a name="l00035"></a>00035 <span class="comment">/**</span>
<a name="l00036"></a>00036 <span class="comment"> * @defgroup regex Regular Expressions</span>
<a name="l00037"></a>00037 <span class="comment"> * A facility for performing regular expression pattern matching.</span>
<a name="l00038"></a>00038 <span class="comment"> */</span><span class="comment"></span>
<a name="l00039"></a>00039 <span class="comment"> //@{</span>
<a name="l00040"></a>00040 <span class="comment"></span>
<a name="l00041"></a>00041   <span class="comment">// [7.7] Class regex_traits</span><span class="comment"></span>
<a name="l00042"></a>00042 <span class="comment">  /**</span>
<a name="l00043"></a>00043 <span class="comment">   * @brief Describes aspects of a regular expression.</span>
<a name="l00044"></a>00044 <span class="comment">   *</span>
<a name="l00045"></a>00045 <span class="comment">   * A regular expression traits class that satisfies the requirements of </span>
<a name="l00046"></a>00046 <span class="comment">   * section [28.7].</span>
<a name="l00047"></a>00047 <span class="comment">   *</span>
<a name="l00048"></a>00048 <span class="comment">   * The class %regex is parameterized around a set of related types and</span>
<a name="l00049"></a>00049 <span class="comment">   * functions used to complete the definition of its semantics.  This class</span>
<a name="l00050"></a>00050 <span class="comment">   * satisfies the requirements of such a traits class.</span>
<a name="l00051"></a>00051 <span class="comment">   */</span>
<a name="l00052"></a>00052   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_type&gt;
<a name="l00053"></a><a class="code" href="a00685.html">00053</a>     <span class="keyword">struct </span><a class="code" href="a00685.html" title="Describes aspects of a regular expression.">regex_traits</a>
<a name="l00054"></a>00054     {
<a name="l00055"></a>00055     <span class="keyword">public</span>:
<a name="l00056"></a>00056       <span class="keyword">typedef</span> _Ch_type                     char_type;
<a name="l00057"></a>00057       <span class="keyword">typedef</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">std::basic_string&lt;char_type&gt;</a> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">string_type</a>;
<a name="l00058"></a>00058       <span class="keyword">typedef</span> <a class="code" href="a00581.html" title="Container class for localization functionality.The locale class is first a class wrapper for C librar...">std::locale</a>                  <a class="code" href="a00581.html" title="Container class for localization functionality.The locale class is first a class wrapper for C librar...">locale_type</a>;
<a name="l00059"></a>00059       <span class="keyword">typedef</span> std::ctype_base::mask        char_class_type;
<a name="l00060"></a>00060 
<a name="l00061"></a>00061     <span class="keyword">public</span>:<span class="comment"></span>
<a name="l00062"></a>00062 <span class="comment">      /**</span>
<a name="l00063"></a>00063 <span class="comment">       * @brief Constructs a default traits object.</span>
<a name="l00064"></a>00064 <span class="comment">       */</span>
<a name="l00065"></a><a class="code" href="a00685.html#a4db88d5c982e69fbd0202c02de2f714a">00065</a>       <a class="code" href="a00685.html#a4db88d5c982e69fbd0202c02de2f714a" title="Constructs a default traits object.">regex_traits</a>()
<a name="l00066"></a>00066       { }
<a name="l00067"></a>00067       <span class="comment"></span>
<a name="l00068"></a>00068 <span class="comment">      /**</span>
<a name="l00069"></a>00069 <span class="comment">       * @brief Gives the length of a C-style string starting at @p __p.</span>
<a name="l00070"></a>00070 <span class="comment">       *</span>
<a name="l00071"></a>00071 <span class="comment">       * @param __p a pointer to the start of a character sequence.</span>
<a name="l00072"></a>00072 <span class="comment">       *</span>
<a name="l00073"></a>00073 <span class="comment">       * @returns the number of characters between @p *__p and the first</span>
<a name="l00074"></a>00074 <span class="comment">       * default-initialized value of type @p char_type.  In other words, uses</span>
<a name="l00075"></a>00075 <span class="comment">       * the C-string algorithm for determining the length of a sequence of</span>
<a name="l00076"></a>00076 <span class="comment">       * characters.</span>
<a name="l00077"></a>00077 <span class="comment">       */</span>
<a name="l00078"></a>00078       <span class="keyword">static</span> std::size_t
<a name="l00079"></a><a class="code" href="a00685.html#a2d1679803ff038b130a3ac2d545da164">00079</a>       <a class="code" href="a00685.html#a2d1679803ff038b130a3ac2d545da164" title="Gives the length of a C-style string starting at __p.">length</a>(<span class="keyword">const</span> char_type* __p)
<a name="l00080"></a>00080       { <span class="keywordflow">return</span> <a class="code" href="a00253.html#a9518bd0e3a18e6b05bd18ee5bc9fd7d5" title="Returns the number of characters in the string, not including any null-termination.">string_type::traits_type::length</a>(__p); }
<a name="l00081"></a>00081 <span class="comment"></span>
<a name="l00082"></a>00082 <span class="comment">      /**</span>
<a name="l00083"></a>00083 <span class="comment">       * @brief Performs the identity translation.</span>
<a name="l00084"></a>00084 <span class="comment">       *</span>
<a name="l00085"></a>00085 <span class="comment">       * @param c A character to the locale-specific character set.</span>
<a name="l00086"></a>00086 <span class="comment">       *</span>
<a name="l00087"></a>00087 <span class="comment">       * @returns c.</span>
<a name="l00088"></a>00088 <span class="comment">       */</span>
<a name="l00089"></a>00089       char_type
<a name="l00090"></a><a class="code" href="a00685.html#a5327ab460a2798c778f5d884a3bcd1be">00090</a>       <a class="code" href="a00685.html#a5327ab460a2798c778f5d884a3bcd1be" title="Performs the identity translation.">translate</a>(char_type __c)<span class="keyword"> const</span>
<a name="l00091"></a>00091 <span class="keyword">      </span>{ <span class="keywordflow">return</span> __c; }
<a name="l00092"></a>00092       <span class="comment"></span>
<a name="l00093"></a>00093 <span class="comment">      /**</span>
<a name="l00094"></a>00094 <span class="comment">       * @brief Translates a character into a case-insensitive equivalent.</span>
<a name="l00095"></a>00095 <span class="comment">       *</span>
<a name="l00096"></a>00096 <span class="comment">       * @param c A character to the locale-specific character set.</span>
<a name="l00097"></a>00097 <span class="comment">       *</span>
<a name="l00098"></a>00098 <span class="comment">       * @returns the locale-specific lower-case equivalent of c.</span>
<a name="l00099"></a>00099 <span class="comment">       * @throws std::bad_cast if the imbued locale does not support the ctype</span>
<a name="l00100"></a>00100 <span class="comment">       *         facet.</span>
<a name="l00101"></a>00101 <span class="comment">       */</span>
<a name="l00102"></a>00102       char_type
<a name="l00103"></a><a class="code" href="a00685.html#a3df0683cd13b3bcde6100d7e09a06362">00103</a>       <a class="code" href="a00685.html#a3df0683cd13b3bcde6100d7e09a06362" title="Translates a character into a case-insensitive equivalent.">translate_nocase</a>(char_type __c)<span class="keyword"> const</span>
<a name="l00104"></a>00104 <span class="keyword">      </span>{
<a name="l00105"></a>00105     <span class="keyword">using</span> <a class="code" href="a00442.html" title="Primary class template ctype facet.This template class defines classification and conversion function...">std::ctype</a>;
<a name="l00106"></a>00106     <span class="keyword">using</span> <a class="code" href="a01137.html#a829725f4fab5d834e1f476b8304c0eb7" title="Return a facet.">std::use_facet</a>;
<a name="l00107"></a>00107     <span class="keywordflow">return</span> use_facet&lt;ctype&lt;char_type&gt; &gt;(_M_locale).<a class="code" href="a01137.html#aff0ee09b5bf874694d0362c48274ef74" title="Convenience interface to ctype.tolower(__c).">tolower</a>(__c);
<a name="l00108"></a>00108       }
<a name="l00109"></a>00109       <span class="comment"></span>
<a name="l00110"></a>00110 <span class="comment">      /**</span>
<a name="l00111"></a>00111 <span class="comment">       * @brief Gets a sort key for a character sequence.</span>
<a name="l00112"></a>00112 <span class="comment">       *</span>
<a name="l00113"></a>00113 <span class="comment">       * @param first beginning of the character sequence.</span>
<a name="l00114"></a>00114 <span class="comment">       * @param last  one-past-the-end of the character sequence.</span>
<a name="l00115"></a>00115 <span class="comment">       *</span>
<a name="l00116"></a>00116 <span class="comment">       * Returns a sort key for the character sequence designated by the</span>
<a name="l00117"></a>00117 <span class="comment">       * iterator range [F1, F2) such that if the character sequence [G1, G2)</span>
<a name="l00118"></a>00118 <span class="comment">       * sorts before the character sequence [H1, H2) then</span>
<a name="l00119"></a>00119 <span class="comment">       * v.transform(G1, G2) &lt; v.transform(H1, H2).</span>
<a name="l00120"></a>00120 <span class="comment">       *</span>
<a name="l00121"></a>00121 <span class="comment">       * What this really does is provide a more efficient way to compare a</span>
<a name="l00122"></a>00122 <span class="comment">       * string to multiple other strings in locales with fancy collation</span>
<a name="l00123"></a>00123 <span class="comment">       * rules and equivalence classes.</span>
<a name="l00124"></a>00124 <span class="comment">       *</span>
<a name="l00125"></a>00125 <span class="comment">       * @returns a locale-specific sort key equivalent to the input range.</span>
<a name="l00126"></a>00126 <span class="comment">       *</span>
<a name="l00127"></a>00127 <span class="comment">       * @throws std::bad_cast if the current locale does not have a collate</span>
<a name="l00128"></a>00128 <span class="comment">       *         facet.</span>
<a name="l00129"></a>00129 <span class="comment">       */</span>
<a name="l00130"></a>00130       <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Fwd_iter&gt;
<a name="l00131"></a>00131         string_type
<a name="l00132"></a><a class="code" href="a00685.html#afe25a7c2669245ccdaa3573f5e922665">00132</a>         <a class="code" href="a00685.html#afe25a7c2669245ccdaa3573f5e922665" title="Gets a sort key for a character sequence.">transform</a>(_Fwd_iter __first, _Fwd_iter __last)<span class="keyword"> const</span>
<a name="l00133"></a>00133 <span class="keyword">        </span>{
<a name="l00134"></a>00134       <span class="keyword">using</span> <a class="code" href="a01151.html#a1e164c649a05eb8a93d64427b45541e6">std::collate</a>;
<a name="l00135"></a>00135       <span class="keyword">using</span> <a class="code" href="a01137.html#a829725f4fab5d834e1f476b8304c0eb7" title="Return a facet.">std::use_facet</a>;
<a name="l00136"></a>00136       <span class="keyword">const</span> <a class="code" href="a00432.html" title="Facet for localized string comparison.">collate&lt;_Ch_type&gt;</a>&amp; __c(<a class="code" href="a01137.html#a829725f4fab5d834e1f476b8304c0eb7" title="Return a facet.">use_facet</a>&lt;
<a name="l00137"></a>00137                        <a class="code" href="a00432.html" title="Facet for localized string comparison.">collate&lt;_Ch_type&gt;</a> &gt;(_M_locale));
<a name="l00138"></a>00138       <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">string_type</a> __s(__first, __last);
<a name="l00139"></a>00139       <span class="keywordflow">return</span> __c.<a class="code" href="a00432.html#ad39fdafcd65ce35b3fc86f7217cf5cc0" title="Transform string to comparable form.">transform</a>(__s.<a class="code" href="a00253.html#a41c3f549b90ac3127288fc278c259599" title="Return const pointer to contents.">data</a>(), __s.<a class="code" href="a00253.html#a41c3f549b90ac3127288fc278c259599" title="Return const pointer to contents.">data</a>() + __s.<a class="code" href="a00253.html#ac12b0940bdc4c97c6360e68455c7bd70" title="Returns the number of characters in the string, not including any null-termination.">size</a>());
<a name="l00140"></a>00140     }
<a name="l00141"></a>00141 <span class="comment"></span>
<a name="l00142"></a>00142 <span class="comment">      /**</span>
<a name="l00143"></a>00143 <span class="comment">       * @brief Gets a sort key for a character sequence, independant of case.</span>
<a name="l00144"></a>00144 <span class="comment">       *</span>
<a name="l00145"></a>00145 <span class="comment">       * @param first beginning of the character sequence.</span>
<a name="l00146"></a>00146 <span class="comment">       * @param last  one-past-the-end of the character sequence.</span>
<a name="l00147"></a>00147 <span class="comment">       *</span>
<a name="l00148"></a>00148 <span class="comment">       * Effects: if typeid(use_facet&lt;collate&lt;_Ch_type&gt; &gt;) ==</span>
<a name="l00149"></a>00149 <span class="comment">       * typeid(collate_byname&lt;_Ch_type&gt;) and the form of the sort key</span>
<a name="l00150"></a>00150 <span class="comment">       * returned by collate_byname&lt;_Ch_type&gt;::transform(first, last) is known</span>
<a name="l00151"></a>00151 <span class="comment">       * and can be converted into a primary sort key then returns that key,</span>
<a name="l00152"></a>00152 <span class="comment">       * otherwise returns an empty string.</span>
<a name="l00153"></a>00153 <span class="comment">       *</span>
<a name="l00154"></a>00154 <span class="comment">       * @todo Implement this function.</span>
<a name="l00155"></a>00155 <span class="comment">       */</span>
<a name="l00156"></a>00156       <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Fwd_iter&gt;
<a name="l00157"></a>00157         string_type
<a name="l00158"></a><a class="code" href="a00685.html#abcc4e5c05dffb9afb2f16d5bab6eaf4d">00158</a>         <a class="code" href="a00685.html#abcc4e5c05dffb9afb2f16d5bab6eaf4d" title="Gets a sort key for a character sequence, independant of case.">transform_primary</a>(_Fwd_iter __first, _Fwd_iter __last)<span class="keyword"> const</span>
<a name="l00159"></a>00159 <span class="keyword">        </span>{ <span class="keywordflow">return</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">string_type</a>(); }
<a name="l00160"></a>00160 <span class="comment"></span>
<a name="l00161"></a>00161 <span class="comment">      /**</span>
<a name="l00162"></a>00162 <span class="comment">       * @brief Gets a collation element by name.</span>
<a name="l00163"></a>00163 <span class="comment">       *</span>
<a name="l00164"></a>00164 <span class="comment">       * @param first beginning of the collation element name.</span>
<a name="l00165"></a>00165 <span class="comment">       * @param last  one-past-the-end of the collation element name.</span>
<a name="l00166"></a>00166 <span class="comment">       * </span>
<a name="l00167"></a>00167 <span class="comment">       * @returns a sequence of one or more characters that represents the</span>
<a name="l00168"></a>00168 <span class="comment">       * collating element consisting of the character sequence designated by</span>
<a name="l00169"></a>00169 <span class="comment">       * the iterator range [first, last). Returns an empty string if the</span>
<a name="l00170"></a>00170 <span class="comment">       * character sequence is not a valid collating element.</span>
<a name="l00171"></a>00171 <span class="comment">       *</span>
<a name="l00172"></a>00172 <span class="comment">       * @todo Implement this function.</span>
<a name="l00173"></a>00173 <span class="comment">       */</span>
<a name="l00174"></a>00174       <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Fwd_iter&gt;
<a name="l00175"></a>00175         string_type
<a name="l00176"></a><a class="code" href="a00685.html#a84884ecf43a212774326df72e81d4323">00176</a>         <a class="code" href="a00685.html#a84884ecf43a212774326df72e81d4323" title="Gets a collation element by name.">lookup_collatename</a>(_Fwd_iter __first, _Fwd_iter __last)<span class="keyword"> const</span>
<a name="l00177"></a>00177 <span class="keyword">        </span>{ <span class="keywordflow">return</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">string_type</a>(); }
<a name="l00178"></a>00178 <span class="comment"></span>
<a name="l00179"></a>00179 <span class="comment">      /**</span>
<a name="l00180"></a>00180 <span class="comment">       * @brief Maps one or more characters to a named character</span>
<a name="l00181"></a>00181 <span class="comment">       *        classification.</span>
<a name="l00182"></a>00182 <span class="comment">       *</span>
<a name="l00183"></a>00183 <span class="comment">       * @param first beginning of the character sequence.</span>
<a name="l00184"></a>00184 <span class="comment">       * @param last  one-past-the-end of the character sequence.</span>
<a name="l00185"></a>00185 <span class="comment">       * @param icase ignores the case of the classification name.</span>
<a name="l00186"></a>00186 <span class="comment">       *</span>
<a name="l00187"></a>00187 <span class="comment">       * @returns an unspecified value that represents the character</span>
<a name="l00188"></a>00188 <span class="comment">       * classification named by the character sequence designated by the</span>
<a name="l00189"></a>00189 <span class="comment">       * iterator range [first, last). If @p icase is true, the returned mask</span>
<a name="l00190"></a>00190 <span class="comment">       * identifies the classification regardless of the case of the characters</span>
<a name="l00191"></a>00191 <span class="comment">       * to be matched (for example, [[:lower:]] is the same as [[:alpha:]]),</span>
<a name="l00192"></a>00192 <span class="comment">       * otherwise a case-dependant classification is returned.  The value</span>
<a name="l00193"></a>00193 <span class="comment">       * returned shall be independent of the case of the characters in the</span>
<a name="l00194"></a>00194 <span class="comment">       * character sequence. If the name is not recognized then returns a value</span>
<a name="l00195"></a>00195 <span class="comment">       * that compares equal to 0.</span>
<a name="l00196"></a>00196 <span class="comment">       *</span>
<a name="l00197"></a>00197 <span class="comment">       * At least the following names (or their wide-character equivalent) are</span>
<a name="l00198"></a>00198 <span class="comment">       * supported.</span>
<a name="l00199"></a>00199 <span class="comment">       * - d</span>
<a name="l00200"></a>00200 <span class="comment">       * - w</span>
<a name="l00201"></a>00201 <span class="comment">       * - s</span>
<a name="l00202"></a>00202 <span class="comment">       * - alnum</span>
<a name="l00203"></a>00203 <span class="comment">       * - alpha</span>
<a name="l00204"></a>00204 <span class="comment">       * - blank</span>
<a name="l00205"></a>00205 <span class="comment">       * - cntrl</span>
<a name="l00206"></a>00206 <span class="comment">       * - digit</span>
<a name="l00207"></a>00207 <span class="comment">       * - graph</span>
<a name="l00208"></a>00208 <span class="comment">       * - lower</span>
<a name="l00209"></a>00209 <span class="comment">       * - print</span>
<a name="l00210"></a>00210 <span class="comment">       * - punct</span>
<a name="l00211"></a>00211 <span class="comment">       * - space</span>
<a name="l00212"></a>00212 <span class="comment">       * - upper</span>
<a name="l00213"></a>00213 <span class="comment">       * - xdigit</span>
<a name="l00214"></a>00214 <span class="comment">       *</span>
<a name="l00215"></a>00215 <span class="comment">       * @todo Implement this function.</span>
<a name="l00216"></a>00216 <span class="comment">       */</span>
<a name="l00217"></a>00217       <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Fwd_iter&gt;
<a name="l00218"></a>00218         char_class_type
<a name="l00219"></a><a class="code" href="a00685.html#a8cc178de1b5d5207e8d92433f664543c">00219</a>         <a class="code" href="a00685.html#a8cc178de1b5d5207e8d92433f664543c" title="Maps one or more characters to a named character classification.">lookup_classname</a>(_Fwd_iter __first, _Fwd_iter __last,
<a name="l00220"></a>00220                      <span class="keywordtype">bool</span> __icase = <span class="keyword">false</span>)<span class="keyword"> const</span>
<a name="l00221"></a>00221 <span class="keyword">    </span>{ <span class="keywordflow">return</span> 0; }
<a name="l00222"></a>00222 <span class="comment"></span>
<a name="l00223"></a>00223 <span class="comment">      /**</span>
<a name="l00224"></a>00224 <span class="comment">       * @brief Determines if @p c is a member of an identified class.</span>
<a name="l00225"></a>00225 <span class="comment">       *</span>
<a name="l00226"></a>00226 <span class="comment">       * @param c a character.</span>
<a name="l00227"></a>00227 <span class="comment">       * @param f a class type (as returned from lookup_classname).</span>
<a name="l00228"></a>00228 <span class="comment">       *</span>
<a name="l00229"></a>00229 <span class="comment">       * @returns true if the character @p c is a member of the classification</span>
<a name="l00230"></a>00230 <span class="comment">       * represented by @p f, false otherwise.</span>
<a name="l00231"></a>00231 <span class="comment">       *</span>
<a name="l00232"></a>00232 <span class="comment">       * @throws std::bad_cast if the current locale does not have a ctype</span>
<a name="l00233"></a>00233 <span class="comment">       *         facet.</span>
<a name="l00234"></a>00234 <span class="comment">       */</span>
<a name="l00235"></a>00235       <span class="keywordtype">bool</span>
<a name="l00236"></a>00236       <a class="code" href="a01192.html#ga994216dc8e2fb4698a058fd2ed692c1d" title="Determines if c is a member of an identified class.">isctype</a>(_Ch_type __c, char_class_type __f) <span class="keyword">const</span>;
<a name="l00237"></a>00237 <span class="comment"></span>
<a name="l00238"></a>00238 <span class="comment">      /**</span>
<a name="l00239"></a>00239 <span class="comment">       * @brief Converts a digit to an int.</span>
<a name="l00240"></a>00240 <span class="comment">       *</span>
<a name="l00241"></a>00241 <span class="comment">       * @param ch    a character representing a digit.</span>
<a name="l00242"></a>00242 <span class="comment">       * @param radix the radix if the numeric conversion (limited to 8, 10,</span>
<a name="l00243"></a>00243 <span class="comment">       *              or 16).</span>
<a name="l00244"></a>00244 <span class="comment">       * </span>
<a name="l00245"></a>00245 <span class="comment">       * @returns the value represented by the digit ch in base radix if the</span>
<a name="l00246"></a>00246 <span class="comment">       * character ch is a valid digit in base radix; otherwise returns -1.</span>
<a name="l00247"></a>00247 <span class="comment">       */</span>
<a name="l00248"></a>00248       <span class="keywordtype">int</span>
<a name="l00249"></a>00249       <a class="code" href="a01192.html#ga1c9e781d8d15a3814a601f471797c825" title="Converts a digit to an int.">value</a>(_Ch_type __ch, <span class="keywordtype">int</span> __radix) <span class="keyword">const</span>;
<a name="l00250"></a>00250       <span class="comment"></span>
<a name="l00251"></a>00251 <span class="comment">      /**</span>
<a name="l00252"></a>00252 <span class="comment">       * @brief Imbues the regex_traits object with a copy of a new locale.</span>
<a name="l00253"></a>00253 <span class="comment">       *</span>
<a name="l00254"></a>00254 <span class="comment">       * @param loc A locale.</span>
<a name="l00255"></a>00255 <span class="comment">       *</span>
<a name="l00256"></a>00256 <span class="comment">       * @returns a copy of the previous locale in use by the regex_traits</span>
<a name="l00257"></a>00257 <span class="comment">       *          object.</span>
<a name="l00258"></a>00258 <span class="comment">       *</span>
<a name="l00259"></a>00259 <span class="comment">       * @note Calling imbue with a different locale than the one currently in</span>
<a name="l00260"></a>00260 <span class="comment">       *       use invalidates all cached data held by *this.</span>
<a name="l00261"></a>00261 <span class="comment">       */</span>
<a name="l00262"></a>00262       locale_type
<a name="l00263"></a><a class="code" href="a00685.html#ae1d71eed7ede0411f443426e1d0b781d">00263</a>       <a class="code" href="a00685.html#ae1d71eed7ede0411f443426e1d0b781d" title="Imbues the regex_traits object with a copy of a new locale.">imbue</a>(<a class="code" href="a00581.html" title="Container class for localization functionality.The locale class is first a class wrapper for C librar...">locale_type</a> __loc)
<a name="l00264"></a>00264       {
<a name="l00265"></a>00265     std::swap(_M_locale, __loc);
<a name="l00266"></a>00266     <span class="keywordflow">return</span> __loc;
<a name="l00267"></a>00267       }
<a name="l00268"></a>00268       <span class="comment"></span>
<a name="l00269"></a>00269 <span class="comment">      /**</span>
<a name="l00270"></a>00270 <span class="comment">       * @brief Gets a copy of the current locale in use by the regex_traits</span>
<a name="l00271"></a>00271 <span class="comment">       * object.</span>
<a name="l00272"></a>00272 <span class="comment">       */</span>
<a name="l00273"></a>00273       locale_type
<a name="l00274"></a><a class="code" href="a00685.html#a5724fe48011546cb282a69155a7f453c">00274</a>       <a class="code" href="a00685.html#a5724fe48011546cb282a69155a7f453c" title="Gets a copy of the current locale in use by the regex_traits object.">getloc</a>()<span class="keyword"> const</span>
<a name="l00275"></a>00275 <span class="keyword">      </span>{ <span class="keywordflow">return</span> _M_locale; }
<a name="l00276"></a>00276       
<a name="l00277"></a>00277     <span class="keyword">protected</span>:
<a name="l00278"></a>00278       locale_type _M_locale;
<a name="l00279"></a>00279     };
<a name="l00280"></a>00280 
<a name="l00281"></a>00281   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_type&gt;
<a name="l00282"></a>00282     <span class="keywordtype">bool</span>
<a name="l00283"></a>00283     <a class="code" href="a01192.html#ga994216dc8e2fb4698a058fd2ed692c1d" title="Determines if c is a member of an identified class.">regex_traits&lt;_Ch_type&gt;::</a>
<a name="l00284"></a><a class="code" href="a01192.html#ga994216dc8e2fb4698a058fd2ed692c1d">00284</a> <a class="code" href="a01192.html#ga994216dc8e2fb4698a058fd2ed692c1d" title="Determines if c is a member of an identified class.">    isctype</a>(_Ch_type __c, char_class_type __f)<span class="keyword"> const</span>
<a name="l00285"></a>00285 <span class="keyword">    </span>{
<a name="l00286"></a>00286       <span class="keyword">using</span> <a class="code" href="a00442.html" title="Primary class template ctype facet.This template class defines classification and conversion function...">std::ctype</a>;
<a name="l00287"></a>00287       <span class="keyword">using</span> <a class="code" href="a01137.html#a829725f4fab5d834e1f476b8304c0eb7" title="Return a facet.">std::use_facet</a>;
<a name="l00288"></a>00288       <span class="keyword">const</span> <a class="code" href="a00442.html" title="Primary class template ctype facet.This template class defines classification and conversion function...">ctype&lt;_Ch_type&gt;</a>&amp; __ctype(<a class="code" href="a01137.html#a829725f4fab5d834e1f476b8304c0eb7" title="Return a facet.">use_facet</a>&lt;
<a name="l00289"></a>00289                      <a class="code" href="a00442.html" title="Primary class template ctype facet.This template class defines classification and conversion function...">ctype&lt;_Ch_type&gt;</a> &gt;(_M_locale));
<a name="l00290"></a>00290       
<a name="l00291"></a>00291       <span class="keywordflow">if</span> (__ctype.<a class="code" href="a00003.html#a9ad5e9bf4b65639e19c79dc795c94e99" title="Test char_type classification.">is</a>(__f, __c))
<a name="l00292"></a>00292     <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00293"></a>00293       
<a name="l00294"></a>00294       <span class="comment">// special case of underscore in [[:w:]]</span>
<a name="l00295"></a>00295       <span class="keywordflow">if</span> (__c == __ctype.<a class="code" href="a00003.html#ab406c705eec370b9bd6a8e289195ec9a" title="Widen char to char_type.">widen</a>(<span class="charliteral">&#39;_&#39;</span>))
<a name="l00296"></a>00296     {
<a name="l00297"></a>00297       <span class="keyword">const</span> <span class="keywordtype">char</span> __wb[] = <span class="stringliteral">&quot;w&quot;</span>;
<a name="l00298"></a>00298       char_class_type __wt = this-&gt;lookup_classname(__wb,
<a name="l00299"></a>00299                             __wb + <span class="keyword">sizeof</span>(__wb));
<a name="l00300"></a>00300       <span class="keywordflow">if</span> (__f | __wt)
<a name="l00301"></a>00301         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00302"></a>00302     }
<a name="l00303"></a>00303     
<a name="l00304"></a>00304       <span class="comment">// special case of [[:space:]] in [[:blank:]]</span>
<a name="l00305"></a>00305       <span class="keywordflow">if</span> (__ctype.<a class="code" href="a00003.html#a9ad5e9bf4b65639e19c79dc795c94e99" title="Test char_type classification.">is</a>(std::ctype_base::space, __c))
<a name="l00306"></a>00306     {
<a name="l00307"></a>00307       <span class="keyword">const</span> <span class="keywordtype">char</span> __bb[] = <span class="stringliteral">&quot;blank&quot;</span>;
<a name="l00308"></a>00308       char_class_type __bt = this-&gt;lookup_classname(__bb,
<a name="l00309"></a>00309                             __bb + <span class="keyword">sizeof</span>(__bb));
<a name="l00310"></a>00310       <span class="keywordflow">if</span> (__f | __bt)
<a name="l00311"></a>00311         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00312"></a>00312     }
<a name="l00313"></a>00313       
<a name="l00314"></a>00314       <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00315"></a>00315     }
<a name="l00316"></a>00316 
<a name="l00317"></a>00317   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_type&gt;
<a name="l00318"></a>00318     <span class="keywordtype">int</span>
<a name="l00319"></a>00319     <a class="code" href="a01192.html#ga1c9e781d8d15a3814a601f471797c825" title="Converts a digit to an int.">regex_traits&lt;_Ch_type&gt;::</a>
<a name="l00320"></a><a class="code" href="a01192.html#ga1c9e781d8d15a3814a601f471797c825">00320</a> <a class="code" href="a01192.html#ga1c9e781d8d15a3814a601f471797c825" title="Converts a digit to an int.">    value</a>(_Ch_type __ch, <span class="keywordtype">int</span> __radix)<span class="keyword"> const</span>
<a name="l00321"></a>00321 <span class="keyword">    </span>{
<a name="l00322"></a>00322       <a class="code" href="a00398.html" title="Controlling input for std::string.This class supports reading from objects of type std::basic_string...">std::basic_istringstream&lt;_Ch_type&gt;</a> __is(<a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">string_type</a>(1, __ch));
<a name="l00323"></a>00323       <span class="keywordtype">int</span> __v;
<a name="l00324"></a>00324       <span class="keywordflow">if</span> (__radix == 8)
<a name="l00325"></a>00325     __is &gt;&gt; <a class="code" href="a01137.html#a5fa596d5be9b0fbcf9d9c18b6ed1fe0e" title="Calls base.setf(ios_base::oct, ios_base::basefield).">std::oct</a>;
<a name="l00326"></a>00326       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (__radix == 16)
<a name="l00327"></a>00327     __is &gt;&gt; <a class="code" href="a01137.html#a6657c6357b609abbfd0507c8d1cdc90c" title="Calls base.setf(ios_base::hex, ios_base::basefield).">std::hex</a>;
<a name="l00328"></a>00328       __is &gt;&gt; __v;
<a name="l00329"></a>00329       <span class="keywordflow">return</span> __is.<a class="code" href="a00248.html#a2349b2b3eeb63b198d935bfd5f125be0" title="Fast error checking.">fail</a>() ? -1 : __v;
<a name="l00330"></a>00330     }
<a name="l00331"></a>00331 
<a name="l00332"></a>00332   <span class="comment">// [7.8] Class basic_regex</span><span class="comment"></span>
<a name="l00333"></a>00333 <span class="comment">  /**</span>
<a name="l00334"></a>00334 <span class="comment">   * Objects of specializations of this class represent regular expressions</span>
<a name="l00335"></a>00335 <span class="comment">   * constructed from sequences of character type @p _Ch_type.</span>
<a name="l00336"></a>00336 <span class="comment">   *</span>
<a name="l00337"></a>00337 <span class="comment">   * Storage for the regular expression is allocated and deallocated as</span>
<a name="l00338"></a>00338 <span class="comment">   * necessary by the member functions of this class.</span>
<a name="l00339"></a>00339 <span class="comment">   */</span>
<a name="l00340"></a>00340   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_type, <span class="keyword">typename</span> _Rx_traits = regex_traits&lt;_Ch_type&gt; &gt;
<a name="l00341"></a><a class="code" href="a00402.html">00341</a>     <span class="keyword">class </span><a class="code" href="a00402.html">basic_regex</a>
<a name="l00342"></a>00342     {
<a name="l00343"></a>00343     <span class="keyword">public</span>:
<a name="l00344"></a>00344       <span class="comment">// types:</span>
<a name="l00345"></a>00345       <span class="keyword">typedef</span> _Ch_type                            value_type;
<a name="l00346"></a>00346       <span class="keyword">typedef</span> _Rx_traits                          traits_type;
<a name="l00347"></a>00347       <span class="keyword">typedef</span> <span class="keyword">typename</span> traits_type::string_type   string_type;
<a name="l00348"></a>00348       <span class="keyword">typedef</span> <a class="code" href="a01151.html#a903dd050f315035c7b2ebc2f85d58113" title="This is a bitmask type indicating how to interpret the regex.">regex_constants::syntax_option_type</a> flag_type;
<a name="l00349"></a>00349       <span class="keyword">typedef</span> <span class="keyword">typename</span> traits_type::locale_type   locale_type;
<a name="l00350"></a>00350 <span class="comment"></span>
<a name="l00351"></a>00351 <span class="comment">      /**</span>
<a name="l00352"></a>00352 <span class="comment">       * @name Constants</span>
<a name="l00353"></a>00353 <span class="comment">       * std [28.8.1](1)</span>
<a name="l00354"></a>00354 <span class="comment">       */</span><span class="comment"></span>
<a name="l00355"></a>00355 <span class="comment">      //@{</span>
<a name="l00356"></a>00356 <span class="comment"></span>      <span class="keyword">static</span> constexpr <a class="code" href="a01151.html#a903dd050f315035c7b2ebc2f85d58113" title="This is a bitmask type indicating how to interpret the regex.">regex_constants::syntax_option_type</a> icase
<a name="l00357"></a>00357         = <a class="code" href="a01151.html#abdc0c254047958096e4a15d438450286">regex_constants::icase</a>;
<a name="l00358"></a>00358       <span class="keyword">static</span> constexpr <a class="code" href="a01151.html#a903dd050f315035c7b2ebc2f85d58113" title="This is a bitmask type indicating how to interpret the regex.">regex_constants::syntax_option_type</a> nosubs
<a name="l00359"></a>00359         = <a class="code" href="a01151.html#ad272d952090cdb2922bb67cbd8cdda26">regex_constants::nosubs</a>;
<a name="l00360"></a>00360       <span class="keyword">static</span> constexpr <a class="code" href="a01151.html#a903dd050f315035c7b2ebc2f85d58113" title="This is a bitmask type indicating how to interpret the regex.">regex_constants::syntax_option_type</a> optimize
<a name="l00361"></a>00361         = <a class="code" href="a01151.html#aca95b9eb242ccfc9700dfb187e74d55a">regex_constants::optimize</a>;
<a name="l00362"></a>00362       <span class="keyword">static</span> constexpr <a class="code" href="a01151.html#a903dd050f315035c7b2ebc2f85d58113" title="This is a bitmask type indicating how to interpret the regex.">regex_constants::syntax_option_type</a> <a class="code" href="a00432.html" title="Facet for localized string comparison.">collate</a>
<a name="l00363"></a>00363         = <a class="code" href="a01151.html#a1e164c649a05eb8a93d64427b45541e6">regex_constants::collate</a>;
<a name="l00364"></a>00364       <span class="keyword">static</span> constexpr <a class="code" href="a01151.html#a903dd050f315035c7b2ebc2f85d58113" title="This is a bitmask type indicating how to interpret the regex.">regex_constants::syntax_option_type</a> ECMAScript
<a name="l00365"></a>00365         = <a class="code" href="a01151.html#a44c0e825f131209047520d6951379593">regex_constants::ECMAScript</a>;
<a name="l00366"></a>00366       <span class="keyword">static</span> constexpr <a class="code" href="a01151.html#a903dd050f315035c7b2ebc2f85d58113" title="This is a bitmask type indicating how to interpret the regex.">regex_constants::syntax_option_type</a> basic
<a name="l00367"></a>00367         = <a class="code" href="a01151.html#aa09fe132bad48a764d307fd88b8b9325">regex_constants::basic</a>;
<a name="l00368"></a>00368       <span class="keyword">static</span> constexpr <a class="code" href="a01151.html#a903dd050f315035c7b2ebc2f85d58113" title="This is a bitmask type indicating how to interpret the regex.">regex_constants::syntax_option_type</a> extended
<a name="l00369"></a>00369         = <a class="code" href="a01151.html#a91ad12778523062eaef0df2a35fa82bf">regex_constants::extended</a>;
<a name="l00370"></a>00370       <span class="keyword">static</span> constexpr <a class="code" href="a01151.html#a903dd050f315035c7b2ebc2f85d58113" title="This is a bitmask type indicating how to interpret the regex.">regex_constants::syntax_option_type</a> awk
<a name="l00371"></a>00371         = <a class="code" href="a01151.html#a861153b438007df51dbc43cc58ec4d8b">regex_constants::awk</a>;
<a name="l00372"></a>00372       <span class="keyword">static</span> constexpr <a class="code" href="a01151.html#a903dd050f315035c7b2ebc2f85d58113" title="This is a bitmask type indicating how to interpret the regex.">regex_constants::syntax_option_type</a> grep
<a name="l00373"></a>00373         = <a class="code" href="a01151.html#aff87c3e46ff7278cb6067e653e88103d">regex_constants::grep</a>;
<a name="l00374"></a>00374       <span class="keyword">static</span> constexpr <a class="code" href="a01151.html#a903dd050f315035c7b2ebc2f85d58113" title="This is a bitmask type indicating how to interpret the regex.">regex_constants::syntax_option_type</a> egrep
<a name="l00375"></a>00375         = <a class="code" href="a01151.html#a4abb15fdbae8f0593dc7662f727e9f0d">regex_constants::egrep</a>;<span class="comment"></span>
<a name="l00376"></a>00376 <span class="comment">      //@}</span>
<a name="l00377"></a>00377 <span class="comment"></span>
<a name="l00378"></a>00378       <span class="comment">// [7.8.2] construct/copy/destroy</span><span class="comment"></span>
<a name="l00379"></a>00379 <span class="comment">      /**</span>
<a name="l00380"></a>00380 <span class="comment">       * Constructs a basic regular expression that does not match any</span>
<a name="l00381"></a>00381 <span class="comment">       * character sequence.</span>
<a name="l00382"></a>00382 <span class="comment">       */</span>
<a name="l00383"></a><a class="code" href="a00402.html#a8eecbcfc879e614d9fe9431c066ac906">00383</a>       <a class="code" href="a00402.html#a8eecbcfc879e614d9fe9431c066ac906">basic_regex</a>()
<a name="l00384"></a>00384       : _M_flags(regex_constants::ECMAScript),
<a name="l00385"></a>00385         _M_automaton(__regex::__compile&lt;const _Ch_type*, _Rx_traits&gt;(0, 0,
<a name="l00386"></a>00386                      _M_traits, _M_flags))
<a name="l00387"></a>00387       { }
<a name="l00388"></a>00388 <span class="comment"></span>
<a name="l00389"></a>00389 <span class="comment">      /**</span>
<a name="l00390"></a>00390 <span class="comment">       * @brief Constructs a basic regular expression from the sequence</span>
<a name="l00391"></a>00391 <span class="comment">       * [p, p + char_traits&lt;_Ch_type&gt;::length(p)) interpreted according to the</span>
<a name="l00392"></a>00392 <span class="comment">       * flags in @p f.</span>
<a name="l00393"></a>00393 <span class="comment">       *</span>
<a name="l00394"></a>00394 <span class="comment">       * @param p A pointer to the start of a C-style null-terminated string</span>
<a name="l00395"></a>00395 <span class="comment">       *          containing a regular expression.</span>
<a name="l00396"></a>00396 <span class="comment">       * @param f Flags indicating the syntax rules and options.</span>
<a name="l00397"></a>00397 <span class="comment">       *</span>
<a name="l00398"></a>00398 <span class="comment">       * @throws regex_error if @p p is not a valid regular expression.</span>
<a name="l00399"></a>00399 <span class="comment">       */</span>
<a name="l00400"></a>00400       <span class="keyword">explicit</span>
<a name="l00401"></a><a class="code" href="a00402.html#a31ea01f7dad4b6072c4613498156ac0d">00401</a>       <a class="code" href="a00402.html#a8eecbcfc879e614d9fe9431c066ac906">basic_regex</a>(<span class="keyword">const</span> _Ch_type* __p,
<a name="l00402"></a>00402           flag_type __f = <a class="code" href="a01151.html#a44c0e825f131209047520d6951379593">regex_constants::ECMAScript</a>)
<a name="l00403"></a>00403       : _M_flags(__f),
<a name="l00404"></a>00404         _M_automaton(__regex::__compile(__p, __p + _Rx_traits::length(__p),
<a name="l00405"></a>00405                         _M_traits, _M_flags))
<a name="l00406"></a>00406       { }
<a name="l00407"></a>00407 <span class="comment"></span>
<a name="l00408"></a>00408 <span class="comment">      /**</span>
<a name="l00409"></a>00409 <span class="comment">       * @brief Constructs a basic regular expression from the sequence</span>
<a name="l00410"></a>00410 <span class="comment">       * [p, p + len) interpreted according to the flags in @p f.</span>
<a name="l00411"></a>00411 <span class="comment">       *</span>
<a name="l00412"></a>00412 <span class="comment">       * @param p   A pointer to the start of a string containing a regular</span>
<a name="l00413"></a>00413 <span class="comment">       *            expression.</span>
<a name="l00414"></a>00414 <span class="comment">       * @param len The length of the string containing the regular expression.</span>
<a name="l00415"></a>00415 <span class="comment">       * @param f   Flags indicating the syntax rules and options.</span>
<a name="l00416"></a>00416 <span class="comment">       *</span>
<a name="l00417"></a>00417 <span class="comment">       * @throws regex_error if @p p is not a valid regular expression.</span>
<a name="l00418"></a>00418 <span class="comment">       */</span>
<a name="l00419"></a><a class="code" href="a00402.html#a950ec895f34a4284fddd7cdde9869c38">00419</a>       <a class="code" href="a00402.html#a8eecbcfc879e614d9fe9431c066ac906">basic_regex</a>(<span class="keyword">const</span> _Ch_type* __p, std::size_t __len, flag_type __f)
<a name="l00420"></a>00420       : _M_flags(__f),
<a name="l00421"></a>00421         _M_automaton(__regex::__compile(__p, __p + __len, _M_traits, _M_flags))
<a name="l00422"></a>00422       { }
<a name="l00423"></a>00423 <span class="comment"></span>
<a name="l00424"></a>00424 <span class="comment">      /**</span>
<a name="l00425"></a>00425 <span class="comment">       * @brief Copy-constructs a basic regular expression.</span>
<a name="l00426"></a>00426 <span class="comment">       *</span>
<a name="l00427"></a>00427 <span class="comment">       * @param rhs A @p regex object.</span>
<a name="l00428"></a>00428 <span class="comment">       */</span>
<a name="l00429"></a><a class="code" href="a00402.html#a2437bd39708a0fc556204f31718a6deb">00429</a>       <a class="code" href="a00402.html#a8eecbcfc879e614d9fe9431c066ac906">basic_regex</a>(<span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex</a>&amp; __rhs)
<a name="l00430"></a>00430       : _M_flags(__rhs._M_flags), _M_traits(__rhs._M_traits),
<a name="l00431"></a>00431         _M_automaton(__rhs._M_automaton)
<a name="l00432"></a>00432       { }
<a name="l00433"></a>00433 <span class="comment"></span>
<a name="l00434"></a>00434 <span class="comment">      /**</span>
<a name="l00435"></a>00435 <span class="comment">       * @brief Move-constructs a basic regular expression.</span>
<a name="l00436"></a>00436 <span class="comment">       *</span>
<a name="l00437"></a>00437 <span class="comment">       * @param rhs A @p regex object.</span>
<a name="l00438"></a>00438 <span class="comment">       */</span>
<a name="l00439"></a><a class="code" href="a00402.html#a23eead2830a36feab4bbe3e6ab6cf8c9">00439</a>       <a class="code" href="a00402.html#a8eecbcfc879e614d9fe9431c066ac906">basic_regex</a>(<span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex</a>&amp;&amp; __rhs) noexcept
<a name="l00440"></a>00440       : _M_flags(__rhs._M_flags), _M_traits(__rhs._M_traits),
<a name="l00441"></a>00441         _M_automaton(std::move(__rhs._M_automaton))
<a name="l00442"></a>00442       { }
<a name="l00443"></a>00443 <span class="comment"></span>
<a name="l00444"></a>00444 <span class="comment">      /**</span>
<a name="l00445"></a>00445 <span class="comment">       * @brief Constructs a basic regular expression from the string</span>
<a name="l00446"></a>00446 <span class="comment">       * @p s interpreted according to the flags in @p f.</span>
<a name="l00447"></a>00447 <span class="comment">       *</span>
<a name="l00448"></a>00448 <span class="comment">       * @param s A string containing a regular expression.</span>
<a name="l00449"></a>00449 <span class="comment">       * @param f Flags indicating the syntax rules and options.</span>
<a name="l00450"></a>00450 <span class="comment">       *</span>
<a name="l00451"></a>00451 <span class="comment">       * @throws regex_error if @p s is not a valid regular expression.</span>
<a name="l00452"></a>00452 <span class="comment">       */</span>
<a name="l00453"></a>00453       <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _Ch_alloc&gt;
<a name="l00454"></a>00454         <span class="keyword">explicit</span>
<a name="l00455"></a><a class="code" href="a00402.html#a6530cf185bbd79dcefc1e68ab2c0a224">00455</a>         <a class="code" href="a00402.html#a8eecbcfc879e614d9fe9431c066ac906">basic_regex</a>(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">std::basic_string</a>&lt;_Ch_type, _Ch_traits,
<a name="l00456"></a>00456             _Ch_alloc&gt;&amp; __s,
<a name="l00457"></a>00457             flag_type __f = <a class="code" href="a01151.html#a44c0e825f131209047520d6951379593">regex_constants::ECMAScript</a>)
<a name="l00458"></a>00458     : _M_flags(__f),
<a name="l00459"></a>00459       _M_automaton(__regex::__compile(__s.<a class="code" href="a01137.html#a374103e627e735969f3357b0f771bc0d" title="Return an iterator pointing to the first element of the initilizer_list.">begin</a>(), __s.<a class="code" href="a01137.html#a6dd13574db6c6bda00577c2e1687960a" title="Return an iterator pointing to one past the last element of the initilizer_list.">end</a>(),
<a name="l00460"></a>00460                       _M_traits, _M_flags))
<a name="l00461"></a>00461         { }
<a name="l00462"></a>00462 <span class="comment"></span>
<a name="l00463"></a>00463 <span class="comment">      /**</span>
<a name="l00464"></a>00464 <span class="comment">       * @brief Constructs a basic regular expression from the range</span>
<a name="l00465"></a>00465 <span class="comment">       * [first, last) interpreted according to the flags in @p f.</span>
<a name="l00466"></a>00466 <span class="comment">       *</span>
<a name="l00467"></a>00467 <span class="comment">       * @param first The start of a range containing a valid regular</span>
<a name="l00468"></a>00468 <span class="comment">       *              expression.</span>
<a name="l00469"></a>00469 <span class="comment">       * @param last  The end of a range containing a valid regular</span>
<a name="l00470"></a>00470 <span class="comment">       *              expression.</span>
<a name="l00471"></a>00471 <span class="comment">       * @param f     The format flags of the regular expression.</span>
<a name="l00472"></a>00472 <span class="comment">       *</span>
<a name="l00473"></a>00473 <span class="comment">       * @throws regex_error if @p [first, last) is not a valid regular</span>
<a name="l00474"></a>00474 <span class="comment">       *         expression.</span>
<a name="l00475"></a>00475 <span class="comment">       */</span>
<a name="l00476"></a>00476       <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _InputIterator&gt;
<a name="l00477"></a><a class="code" href="a00402.html#ab44222588be82a09e16f681da38cb658">00477</a>         <a class="code" href="a00402.html#a8eecbcfc879e614d9fe9431c066ac906">basic_regex</a>(_InputIterator __first, _InputIterator __last, 
<a name="l00478"></a>00478             flag_type __f = <a class="code" href="a01151.html#a44c0e825f131209047520d6951379593">regex_constants::ECMAScript</a>)
<a name="l00479"></a>00479     : _M_flags(__f),
<a name="l00480"></a>00480       _M_automaton(__regex::__compile(__first, __last, _M_traits, _M_flags))
<a name="l00481"></a>00481         { }
<a name="l00482"></a>00482 <span class="comment"></span>
<a name="l00483"></a>00483 <span class="comment">      /**</span>
<a name="l00484"></a>00484 <span class="comment">       * @brief Constructs a basic regular expression from an initializer list.</span>
<a name="l00485"></a>00485 <span class="comment">       *</span>
<a name="l00486"></a>00486 <span class="comment">       * @param l  The initializer list.</span>
<a name="l00487"></a>00487 <span class="comment">       * @param f  The format flags of the regular expression.</span>
<a name="l00488"></a>00488 <span class="comment">       *</span>
<a name="l00489"></a>00489 <span class="comment">       * @throws regex_error if @p l is not a valid regular expression.</span>
<a name="l00490"></a>00490 <span class="comment">       */</span>
<a name="l00491"></a><a class="code" href="a00402.html#a3a714d0d56f1575bfe7727d5bf6b8e11">00491</a>       <a class="code" href="a00402.html#a8eecbcfc879e614d9fe9431c066ac906">basic_regex</a>(<a class="code" href="a00524.html" title="initializer_list">initializer_list&lt;_Ch_type&gt;</a> __l,
<a name="l00492"></a>00492           flag_type __f = <a class="code" href="a01151.html#a44c0e825f131209047520d6951379593">regex_constants::ECMAScript</a>)
<a name="l00493"></a>00493       : _M_flags(__f),
<a name="l00494"></a>00494         _M_automaton(__regex::__compile(__l.<a class="code" href="a01137.html#a374103e627e735969f3357b0f771bc0d" title="Return an iterator pointing to the first element of the initilizer_list.">begin</a>(), __l.<a class="code" href="a01137.html#a6dd13574db6c6bda00577c2e1687960a" title="Return an iterator pointing to one past the last element of the initilizer_list.">end</a>(),
<a name="l00495"></a>00495                         _M_traits, _M_flags))
<a name="l00496"></a>00496       { }
<a name="l00497"></a>00497 <span class="comment"></span>
<a name="l00498"></a>00498 <span class="comment">      /**</span>
<a name="l00499"></a>00499 <span class="comment">       * @brief Destroys a basic regular expression.</span>
<a name="l00500"></a>00500 <span class="comment">       */</span>
<a name="l00501"></a><a class="code" href="a00402.html#afb50d847a021f4e7044f54e9c6461b54">00501</a>       <a class="code" href="a00402.html#afb50d847a021f4e7044f54e9c6461b54" title="Destroys a basic regular expression.">~basic_regex</a>()
<a name="l00502"></a>00502       { }
<a name="l00503"></a>00503       <span class="comment"></span>
<a name="l00504"></a>00504 <span class="comment">      /**</span>
<a name="l00505"></a>00505 <span class="comment">       * @brief Assigns one regular expression to another.</span>
<a name="l00506"></a>00506 <span class="comment">       */</span>
<a name="l00507"></a>00507       <a class="code" href="a00402.html">basic_regex</a>&amp;
<a name="l00508"></a><a class="code" href="a00402.html#a232af3b8f7c72e6c67ba9f3b6d1b256d">00508</a>       <a class="code" href="a00402.html#a232af3b8f7c72e6c67ba9f3b6d1b256d" title="Assigns one regular expression to another.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex</a>&amp; __rhs)
<a name="l00509"></a>00509       { <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00402.html#a4c13f179b615747c4870a009f84fb490" title="the real assignment operator.">assign</a>(__rhs); }
<a name="l00510"></a>00510 <span class="comment"></span>
<a name="l00511"></a>00511 <span class="comment">      /**</span>
<a name="l00512"></a>00512 <span class="comment">       * @brief Move-assigns one regular expression to another.</span>
<a name="l00513"></a>00513 <span class="comment">       */</span>
<a name="l00514"></a>00514       <a class="code" href="a00402.html">basic_regex</a>&amp;
<a name="l00515"></a><a class="code" href="a00402.html#a8d6c69a28d8c523cae6f7322095490d5">00515</a>       <a class="code" href="a00402.html#a232af3b8f7c72e6c67ba9f3b6d1b256d" title="Assigns one regular expression to another.">operator=</a>(<a class="code" href="a00402.html">basic_regex</a>&amp;&amp; __rhs) noexcept
<a name="l00516"></a>00516       { <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00402.html#a4c13f179b615747c4870a009f84fb490" title="the real assignment operator.">assign</a>(std::move(__rhs)); }
<a name="l00517"></a>00517 <span class="comment"></span>
<a name="l00518"></a>00518 <span class="comment">      /**</span>
<a name="l00519"></a>00519 <span class="comment">       * @brief Replaces a regular expression with a new one constructed from</span>
<a name="l00520"></a>00520 <span class="comment">       * a C-style null-terminated string.</span>
<a name="l00521"></a>00521 <span class="comment">       *</span>
<a name="l00522"></a>00522 <span class="comment">       * @param A pointer to the start of a null-terminated C-style string</span>
<a name="l00523"></a>00523 <span class="comment">       *        containing a regular expression.</span>
<a name="l00524"></a>00524 <span class="comment">       */</span>
<a name="l00525"></a>00525       <a class="code" href="a00402.html">basic_regex</a>&amp;
<a name="l00526"></a><a class="code" href="a00402.html#aaf3c150b855c8dddc84f7a33519dba7f">00526</a>       <a class="code" href="a00402.html#a232af3b8f7c72e6c67ba9f3b6d1b256d" title="Assigns one regular expression to another.">operator=</a>(<span class="keyword">const</span> _Ch_type* __p)
<a name="l00527"></a>00527       { <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00402.html#a4c13f179b615747c4870a009f84fb490" title="the real assignment operator.">assign</a>(__p, <a class="code" href="a00402.html#a79a889bf1c3d1f28398b273aa2bec91b" title="Gets the flags used to construct the regular expression or in the last call to assign().">flags</a>()); }
<a name="l00528"></a>00528       <span class="comment"></span>
<a name="l00529"></a>00529 <span class="comment">      /**</span>
<a name="l00530"></a>00530 <span class="comment">       * @brief Replaces a regular expression with a new one constructed from</span>
<a name="l00531"></a>00531 <span class="comment">       * a string.</span>
<a name="l00532"></a>00532 <span class="comment">       *</span>
<a name="l00533"></a>00533 <span class="comment">       * @param A pointer to a string containing a regular expression.</span>
<a name="l00534"></a>00534 <span class="comment">       */</span>
<a name="l00535"></a>00535       <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_typeraits, <span class="keyword">typename</span> _Allocator&gt;
<a name="l00536"></a>00536         <a class="code" href="a00402.html">basic_regex</a>&amp;
<a name="l00537"></a><a class="code" href="a00402.html#abe18a5691b62c94461824adea5c7921f">00537</a>         <a class="code" href="a00402.html#a232af3b8f7c72e6c67ba9f3b6d1b256d" title="Assigns one regular expression to another.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string&lt;_Ch_type, _Ch_typeraits, _Allocator&gt;</a>&amp; __s)
<a name="l00538"></a>00538         { <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00402.html#a4c13f179b615747c4870a009f84fb490" title="the real assignment operator.">assign</a>(__s, <a class="code" href="a00402.html#a79a889bf1c3d1f28398b273aa2bec91b" title="Gets the flags used to construct the regular expression or in the last call to assign().">flags</a>()); }
<a name="l00539"></a>00539 
<a name="l00540"></a>00540       <span class="comment">// [7.8.3] assign</span><span class="comment"></span>
<a name="l00541"></a>00541 <span class="comment">      /**</span>
<a name="l00542"></a>00542 <span class="comment">       * @brief the real assignment operator.</span>
<a name="l00543"></a>00543 <span class="comment">       *</span>
<a name="l00544"></a>00544 <span class="comment">       * @param rhs Another regular expression object.</span>
<a name="l00545"></a>00545 <span class="comment">       */</span>
<a name="l00546"></a>00546       <a class="code" href="a00402.html">basic_regex</a>&amp;
<a name="l00547"></a><a class="code" href="a00402.html#a4c13f179b615747c4870a009f84fb490">00547</a>       <a class="code" href="a00402.html#a4c13f179b615747c4870a009f84fb490" title="the real assignment operator.">assign</a>(<span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex</a>&amp; __rhs)
<a name="l00548"></a>00548       {
<a name="l00549"></a>00549     <a class="code" href="a00402.html">basic_regex</a> __tmp(__rhs);
<a name="l00550"></a>00550     this-&gt;<a class="code" href="a00402.html#a5cd0631c180f408fe3aa42a384bbaa74" title="Swaps the contents of two regular expression objects.">swap</a>(__tmp);
<a name="l00551"></a>00551     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00552"></a>00552       }
<a name="l00553"></a>00553       <span class="comment"></span>
<a name="l00554"></a>00554 <span class="comment">      /**</span>
<a name="l00555"></a>00555 <span class="comment">       * @brief The move-assignment operator.</span>
<a name="l00556"></a>00556 <span class="comment">       *</span>
<a name="l00557"></a>00557 <span class="comment">       * @param rhs Another regular expression object.</span>
<a name="l00558"></a>00558 <span class="comment">       */</span>
<a name="l00559"></a>00559       <a class="code" href="a00402.html">basic_regex</a>&amp;
<a name="l00560"></a><a class="code" href="a00402.html#a2208605216a89f7c0a64b642ec56b962">00560</a>       <a class="code" href="a00402.html#a4c13f179b615747c4870a009f84fb490" title="the real assignment operator.">assign</a>(<a class="code" href="a00402.html">basic_regex</a>&amp;&amp; __rhs) noexcept
<a name="l00561"></a>00561       {
<a name="l00562"></a>00562     <a class="code" href="a00402.html">basic_regex</a> __tmp(std::move(__rhs));
<a name="l00563"></a>00563     this-&gt;<a class="code" href="a00402.html#a5cd0631c180f408fe3aa42a384bbaa74" title="Swaps the contents of two regular expression objects.">swap</a>(__tmp);
<a name="l00564"></a>00564     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00565"></a>00565       }
<a name="l00566"></a>00566 <span class="comment"></span>
<a name="l00567"></a>00567 <span class="comment">      /**</span>
<a name="l00568"></a>00568 <span class="comment">       * @brief Assigns a new regular expression to a regex object from a</span>
<a name="l00569"></a>00569 <span class="comment">       * C-style null-terminated string containing a regular expression</span>
<a name="l00570"></a>00570 <span class="comment">       * pattern.</span>
<a name="l00571"></a>00571 <span class="comment">       *</span>
<a name="l00572"></a>00572 <span class="comment">       * @param p     A pointer to a C-style null-terminated string containing</span>
<a name="l00573"></a>00573 <span class="comment">       *              a regular expression pattern.</span>
<a name="l00574"></a>00574 <span class="comment">       * @param flags Syntax option flags.</span>
<a name="l00575"></a>00575 <span class="comment">       *</span>
<a name="l00576"></a>00576 <span class="comment">       * @throws regex_error if p does not contain a valid regular expression</span>
<a name="l00577"></a>00577 <span class="comment">       * pattern interpreted according to @p flags.  If regex_error is thrown,</span>
<a name="l00578"></a>00578 <span class="comment">       * *this remains unchanged.</span>
<a name="l00579"></a>00579 <span class="comment">       */</span>
<a name="l00580"></a>00580       <a class="code" href="a00402.html">basic_regex</a>&amp;
<a name="l00581"></a><a class="code" href="a00402.html#afd639a2f65f596f50b09ba5c9772c57d">00581</a>       <a class="code" href="a00402.html#a4c13f179b615747c4870a009f84fb490" title="the real assignment operator.">assign</a>(<span class="keyword">const</span> _Ch_type* __p,
<a name="l00582"></a>00582          flag_type __flags = <a class="code" href="a01151.html#a44c0e825f131209047520d6951379593">regex_constants::ECMAScript</a>)
<a name="l00583"></a>00583       { <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00402.html#afd639a2f65f596f50b09ba5c9772c57d" title="Assigns a new regular expression to a regex object from a C-style null-terminated string containing a...">assign</a>(string_type(__p), __flags); }
<a name="l00584"></a>00584 <span class="comment"></span>
<a name="l00585"></a>00585 <span class="comment">      /**</span>
<a name="l00586"></a>00586 <span class="comment">       * @brief Assigns a new regular expression to a regex object from a</span>
<a name="l00587"></a>00587 <span class="comment">       * C-style string containing a regular expression pattern.</span>
<a name="l00588"></a>00588 <span class="comment">       *</span>
<a name="l00589"></a>00589 <span class="comment">       * @param p     A pointer to a C-style string containing a</span>
<a name="l00590"></a>00590 <span class="comment">       *              regular expression pattern.</span>
<a name="l00591"></a>00591 <span class="comment">       * @param len   The length of the regular expression pattern string.</span>
<a name="l00592"></a>00592 <span class="comment">       * @param flags Syntax option flags.</span>
<a name="l00593"></a>00593 <span class="comment">       *</span>
<a name="l00594"></a>00594 <span class="comment">       * @throws regex_error if p does not contain a valid regular expression</span>
<a name="l00595"></a>00595 <span class="comment">       * pattern interpreted according to @p flags.  If regex_error is thrown,</span>
<a name="l00596"></a>00596 <span class="comment">       * *this remains unchanged.</span>
<a name="l00597"></a>00597 <span class="comment">       */</span>
<a name="l00598"></a>00598       <a class="code" href="a00402.html">basic_regex</a>&amp;
<a name="l00599"></a><a class="code" href="a00402.html#a133cf9c18a76a5c5b69bb464ec68015f">00599</a>       <a class="code" href="a00402.html#a4c13f179b615747c4870a009f84fb490" title="the real assignment operator.">assign</a>(<span class="keyword">const</span> _Ch_type* __p, std::size_t __len, flag_type __flags)
<a name="l00600"></a>00600       { <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00402.html#a133cf9c18a76a5c5b69bb464ec68015f" title="Assigns a new regular expression to a regex object from a C-style string containing a regular express...">assign</a>(string_type(__p, __len), __flags); }
<a name="l00601"></a>00601 <span class="comment"></span>
<a name="l00602"></a>00602 <span class="comment">      /**</span>
<a name="l00603"></a>00603 <span class="comment">       * @brief Assigns a new regular expression to a regex object from a </span>
<a name="l00604"></a>00604 <span class="comment">       * string containing a regular expression pattern.</span>
<a name="l00605"></a>00605 <span class="comment">       *</span>
<a name="l00606"></a>00606 <span class="comment">       * @param s     A string containing a regular expression pattern.</span>
<a name="l00607"></a>00607 <span class="comment">       * @param flags Syntax option flags.</span>
<a name="l00608"></a>00608 <span class="comment">       *</span>
<a name="l00609"></a>00609 <span class="comment">       * @throws regex_error if p does not contain a valid regular expression</span>
<a name="l00610"></a>00610 <span class="comment">       * pattern interpreted according to @p flags.  If regex_error is thrown,</span>
<a name="l00611"></a>00611 <span class="comment">       * *this remains unchanged.</span>
<a name="l00612"></a>00612 <span class="comment">       */</span>
<a name="l00613"></a>00613       <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_typeraits, <span class="keyword">typename</span> _Allocator&gt;
<a name="l00614"></a>00614         <a class="code" href="a00402.html">basic_regex</a>&amp;
<a name="l00615"></a><a class="code" href="a00402.html#a9225251d0bead9ab0fdcfe13056b3d32">00615</a>         <a class="code" href="a00402.html#a4c13f179b615747c4870a009f84fb490" title="the real assignment operator.">assign</a>(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string&lt;_Ch_type, _Ch_typeraits, _Allocator&gt;</a>&amp; __s,
<a name="l00616"></a>00616            flag_type __f = <a class="code" href="a01151.html#a44c0e825f131209047520d6951379593">regex_constants::ECMAScript</a>)
<a name="l00617"></a>00617         { 
<a name="l00618"></a>00618       <a class="code" href="a00402.html">basic_regex</a> __tmp(__s, __f);
<a name="l00619"></a>00619       this-&gt;<a class="code" href="a00402.html#a5cd0631c180f408fe3aa42a384bbaa74" title="Swaps the contents of two regular expression objects.">swap</a>(__tmp);
<a name="l00620"></a>00620       <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00621"></a>00621     }
<a name="l00622"></a>00622 <span class="comment"></span>
<a name="l00623"></a>00623 <span class="comment">      /**</span>
<a name="l00624"></a>00624 <span class="comment">       * @brief Assigns a new regular expression to a regex object.</span>
<a name="l00625"></a>00625 <span class="comment">       *</span>
<a name="l00626"></a>00626 <span class="comment">       * @param first The start of a range containing a valid regular</span>
<a name="l00627"></a>00627 <span class="comment">       *              expression.</span>
<a name="l00628"></a>00628 <span class="comment">       * @param last  The end of a range containing a valid regular</span>
<a name="l00629"></a>00629 <span class="comment">       *              expression.</span>
<a name="l00630"></a>00630 <span class="comment">       * @param flags Syntax option flags.</span>
<a name="l00631"></a>00631 <span class="comment">       *</span>
<a name="l00632"></a>00632 <span class="comment">       * @throws regex_error if p does not contain a valid regular expression</span>
<a name="l00633"></a>00633 <span class="comment">       * pattern interpreted according to @p flags.  If regex_error is thrown,</span>
<a name="l00634"></a>00634 <span class="comment">       * the object remains unchanged.</span>
<a name="l00635"></a>00635 <span class="comment">       */</span>
<a name="l00636"></a>00636       <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _InputIterator&gt;
<a name="l00637"></a>00637         <a class="code" href="a00402.html">basic_regex</a>&amp;
<a name="l00638"></a><a class="code" href="a00402.html#af27ca87ca88d17007f410473dc54bd59">00638</a>         <a class="code" href="a00402.html#a4c13f179b615747c4870a009f84fb490" title="the real assignment operator.">assign</a>(_InputIterator __first, _InputIterator __last,
<a name="l00639"></a>00639            flag_type __flags = <a class="code" href="a01151.html#a44c0e825f131209047520d6951379593">regex_constants::ECMAScript</a>)
<a name="l00640"></a>00640         { <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00402.html#af27ca87ca88d17007f410473dc54bd59" title="Assigns a new regular expression to a regex object.">assign</a>(string_type(__first, __last), __flags); }
<a name="l00641"></a>00641 <span class="comment"></span>
<a name="l00642"></a>00642 <span class="comment">      /**</span>
<a name="l00643"></a>00643 <span class="comment">       * @brief Assigns a new regular expression to a regex object.</span>
<a name="l00644"></a>00644 <span class="comment">       *</span>
<a name="l00645"></a>00645 <span class="comment">       * @param l     An initializer list representing a regular expression.</span>
<a name="l00646"></a>00646 <span class="comment">       * @param flags Syntax option flags.</span>
<a name="l00647"></a>00647 <span class="comment">       *</span>
<a name="l00648"></a>00648 <span class="comment">       * @throws regex_error if @p l does not contain a valid regular</span>
<a name="l00649"></a>00649 <span class="comment">       * expression pattern interpreted according to @p flags.  If regex_error</span>
<a name="l00650"></a>00650 <span class="comment">       * is thrown, the object remains unchanged.</span>
<a name="l00651"></a>00651 <span class="comment">       */</span>
<a name="l00652"></a>00652       <a class="code" href="a00402.html">basic_regex</a>&amp;
<a name="l00653"></a><a class="code" href="a00402.html#a8da3af62192872e1b9f95ef5642fb291">00653</a>       <a class="code" href="a00402.html#a4c13f179b615747c4870a009f84fb490" title="the real assignment operator.">assign</a>(<a class="code" href="a00524.html" title="initializer_list">initializer_list&lt;_Ch_type&gt;</a> __l,
<a name="l00654"></a>00654          flag_type __f = <a class="code" href="a01151.html#a44c0e825f131209047520d6951379593">regex_constants::ECMAScript</a>)
<a name="l00655"></a>00655       { <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00402.html#a8da3af62192872e1b9f95ef5642fb291" title="Assigns a new regular expression to a regex object.">assign</a>(__l.begin(), __l.end(), __f); }
<a name="l00656"></a>00656 
<a name="l00657"></a>00657       <span class="comment">// [7.8.4] const operations</span><span class="comment"></span>
<a name="l00658"></a>00658 <span class="comment">      /**</span>
<a name="l00659"></a>00659 <span class="comment">       * @brief Gets the number of marked subexpressions within the regular</span>
<a name="l00660"></a>00660 <span class="comment">       * expression.</span>
<a name="l00661"></a>00661 <span class="comment">       */</span>
<a name="l00662"></a>00662       <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>
<a name="l00663"></a><a class="code" href="a00402.html#aa5795fd1b3e69dd030d2f6f09117b5b6">00663</a>       <a class="code" href="a00402.html#aa5795fd1b3e69dd030d2f6f09117b5b6" title="Gets the number of marked subexpressions within the regular expression.">mark_count</a>()<span class="keyword"> const</span>
<a name="l00664"></a>00664 <span class="keyword">      </span>{ <span class="keywordflow">return</span> _M_automaton-&gt;_M_sub_count() - 1; }
<a name="l00665"></a>00665       <span class="comment"></span>
<a name="l00666"></a>00666 <span class="comment">      /**</span>
<a name="l00667"></a>00667 <span class="comment">       * @brief Gets the flags used to construct the regular expression</span>
<a name="l00668"></a>00668 <span class="comment">       * or in the last call to assign().</span>
<a name="l00669"></a>00669 <span class="comment">       */</span>
<a name="l00670"></a>00670       flag_type
<a name="l00671"></a><a class="code" href="a00402.html#a79a889bf1c3d1f28398b273aa2bec91b">00671</a>       <a class="code" href="a00402.html#a79a889bf1c3d1f28398b273aa2bec91b" title="Gets the flags used to construct the regular expression or in the last call to assign().">flags</a>()<span class="keyword"> const</span>
<a name="l00672"></a>00672 <span class="keyword">      </span>{ <span class="keywordflow">return</span> _M_flags; }
<a name="l00673"></a>00673       
<a name="l00674"></a>00674       <span class="comment">// [7.8.5] locale</span><span class="comment"></span>
<a name="l00675"></a>00675 <span class="comment">      /**</span>
<a name="l00676"></a>00676 <span class="comment">       * @brief Imbues the regular expression object with the given locale.</span>
<a name="l00677"></a>00677 <span class="comment">       *</span>
<a name="l00678"></a>00678 <span class="comment">       * @param loc A locale.</span>
<a name="l00679"></a>00679 <span class="comment">       */</span>
<a name="l00680"></a>00680       locale_type
<a name="l00681"></a><a class="code" href="a00402.html#a47e4d0a05a45fc95da8c061c33789004">00681</a>       <a class="code" href="a00402.html#a47e4d0a05a45fc95da8c061c33789004" title="Imbues the regular expression object with the given locale.">imbue</a>(locale_type __loc)
<a name="l00682"></a>00682       { <span class="keywordflow">return</span> _M_traits.imbue(__loc); }
<a name="l00683"></a>00683       <span class="comment"></span>
<a name="l00684"></a>00684 <span class="comment">      /**</span>
<a name="l00685"></a>00685 <span class="comment">       * @brief Gets the locale currently imbued in the regular expression</span>
<a name="l00686"></a>00686 <span class="comment">       *        object.</span>
<a name="l00687"></a>00687 <span class="comment">       */</span>
<a name="l00688"></a>00688       locale_type
<a name="l00689"></a><a class="code" href="a00402.html#aa2974c3499c4398aba5c9a55a93df934">00689</a>       <a class="code" href="a00402.html#aa2974c3499c4398aba5c9a55a93df934" title="Gets the locale currently imbued in the regular expression object.">getloc</a>()<span class="keyword"> const</span>
<a name="l00690"></a>00690 <span class="keyword">      </span>{ <span class="keywordflow">return</span> _M_traits.getloc(); }
<a name="l00691"></a>00691       
<a name="l00692"></a>00692       <span class="comment">// [7.8.6] swap</span><span class="comment"></span>
<a name="l00693"></a>00693 <span class="comment">      /**</span>
<a name="l00694"></a>00694 <span class="comment">       * @brief Swaps the contents of two regular expression objects.</span>
<a name="l00695"></a>00695 <span class="comment">       *</span>
<a name="l00696"></a>00696 <span class="comment">       * @param rhs Another regular expression object.</span>
<a name="l00697"></a>00697 <span class="comment">       */</span>
<a name="l00698"></a>00698       <span class="keywordtype">void</span>
<a name="l00699"></a><a class="code" href="a00402.html#a5cd0631c180f408fe3aa42a384bbaa74">00699</a>       <a class="code" href="a00402.html#a5cd0631c180f408fe3aa42a384bbaa74" title="Swaps the contents of two regular expression objects.">swap</a>(<a class="code" href="a00402.html">basic_regex</a>&amp; __rhs)
<a name="l00700"></a>00700       {
<a name="l00701"></a>00701     <a class="code" href="a00402.html#a5cd0631c180f408fe3aa42a384bbaa74" title="Swaps the contents of two regular expression objects.">std::swap</a>(_M_flags,     __rhs._M_flags);
<a name="l00702"></a>00702     <a class="code" href="a00402.html#a5cd0631c180f408fe3aa42a384bbaa74" title="Swaps the contents of two regular expression objects.">std::swap</a>(_M_traits,    __rhs._M_traits);
<a name="l00703"></a>00703     <a class="code" href="a00402.html#a5cd0631c180f408fe3aa42a384bbaa74" title="Swaps the contents of two regular expression objects.">std::swap</a>(_M_automaton, __rhs._M_automaton);
<a name="l00704"></a>00704       }
<a name="l00705"></a>00705 
<a name="l00706"></a>00706 <span class="preprocessor">#ifdef _GLIBCXX_DEBUG</span>
<a name="l00707"></a>00707 <span class="preprocessor"></span>      <span class="keywordtype">void</span>
<a name="l00708"></a>00708       _M_dot(<a class="code" href="a00251.html">std::ostream</a>&amp; __ostr)
<a name="l00709"></a>00709       { _M_automaton-&gt;_M_dot(__ostr); }
<a name="l00710"></a>00710 <span class="preprocessor">#endif</span>
<a name="l00711"></a>00711 <span class="preprocessor"></span>      
<a name="l00712"></a>00712       <span class="keyword">const</span> __regex::_AutomatonPtr&amp;
<a name="l00713"></a>00713       _M_get_automaton()<span class="keyword"> const</span>
<a name="l00714"></a>00714 <span class="keyword">      </span>{ <span class="keywordflow">return</span> _M_automaton; }
<a name="l00715"></a>00715 
<a name="l00716"></a>00716     <span class="keyword">protected</span>:
<a name="l00717"></a>00717       flag_type              _M_flags;
<a name="l00718"></a>00718       _Rx_traits             _M_traits;
<a name="l00719"></a>00719       __regex::_AutomatonPtr _M_automaton;
<a name="l00720"></a>00720     };
<a name="l00721"></a>00721   <span class="comment"></span>
<a name="l00722"></a>00722 <span class="comment">  /** @brief Standard regular expressions. */</span>
<a name="l00723"></a><a class="code" href="a01192.html#ga8fceaea413a55303731b390fbd660163">00723</a>   <span class="keyword">typedef</span> <a class="code" href="a00402.html">basic_regex&lt;char&gt;</a>    <a class="code" href="a01192.html#ga8fceaea413a55303731b390fbd660163" title="Standard regular expressions.">regex</a>;
<a name="l00724"></a>00724 <span class="preprocessor">#ifdef _GLIBCXX_USE_WCHAR_T</span>
<a name="l00725"></a>00725 <span class="preprocessor"></span><span class="comment">  /** @brief Standard wide-character regular expressions. */</span>
<a name="l00726"></a><a class="code" href="a01192.html#gae16f87e70ea5847b0399a396c637615f">00726</a>   <span class="keyword">typedef</span> <a class="code" href="a00402.html">basic_regex&lt;wchar_t&gt;</a> <a class="code" href="a01192.html#gae16f87e70ea5847b0399a396c637615f" title="Standard wide-character regular expressions.">wregex</a>;
<a name="l00727"></a>00727 <span class="preprocessor">#endif</span>
<a name="l00728"></a>00728 <span class="preprocessor"></span>
<a name="l00729"></a>00729 
<a name="l00730"></a>00730   <span class="comment">// [7.8.6] basic_regex swap</span><span class="comment"></span>
<a name="l00731"></a>00731 <span class="comment">  /**</span>
<a name="l00732"></a>00732 <span class="comment">   * @brief Swaps the contents of two regular expression objects.</span>
<a name="l00733"></a>00733 <span class="comment">   * @param lhs First regular expression.</span>
<a name="l00734"></a>00734 <span class="comment">   * @param rhs Second regular expression.</span>
<a name="l00735"></a>00735 <span class="comment">   */</span>
<a name="l00736"></a>00736   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_type, <span class="keyword">typename</span> _Rx_traits&gt;
<a name="l00737"></a>00737     <span class="keyword">inline</span> <span class="keywordtype">void</span>
<a name="l00738"></a><a class="code" href="a01192.html#ga861f3775b7a2aec6cb818cd4378e338e">00738</a>     swap(<a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __lhs,
<a name="l00739"></a>00739      <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __rhs)
<a name="l00740"></a>00740     { __lhs.<a class="code" href="a00402.html#a5cd0631c180f408fe3aa42a384bbaa74" title="Swaps the contents of two regular expression objects.">swap</a>(__rhs); }
<a name="l00741"></a>00741 
<a name="l00742"></a>00742 
<a name="l00743"></a>00743   <span class="comment">// [7.9] Class template sub_match</span><span class="comment"></span>
<a name="l00744"></a>00744 <span class="comment">  /**</span>
<a name="l00745"></a>00745 <span class="comment">   * A sequence of characters matched by a particular marked sub-expression.</span>
<a name="l00746"></a>00746 <span class="comment">   *</span>
<a name="l00747"></a>00747 <span class="comment">   * An object of this class is essentially a pair of iterators marking a</span>
<a name="l00748"></a>00748 <span class="comment">   * matched subexpression within a regular expression pattern match. Such</span>
<a name="l00749"></a>00749 <span class="comment">   * objects can be converted to and compared with std::basic_string objects</span>
<a name="l00750"></a>00750 <span class="comment">   * of a similar base character type as the pattern matched by the regular</span>
<a name="l00751"></a>00751 <span class="comment">   * expression.</span>
<a name="l00752"></a>00752 <span class="comment">   *</span>
<a name="l00753"></a>00753 <span class="comment">   * The iterators that make up the pair are the usual half-open interval</span>
<a name="l00754"></a>00754 <span class="comment">   * referencing the actual original pattern matched.</span>
<a name="l00755"></a>00755 <span class="comment">   */</span>
<a name="l00756"></a>00756   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _BiIter&gt;
<a name="l00757"></a><a class="code" href="a00704.html">00757</a>     <span class="keyword">class </span><a class="code" href="a00704.html">sub_match</a> : <span class="keyword">public</span> std::<a class="code" href="a00263.html" title="Struct holding two objects of arbitrary type.">pair</a>&lt;_BiIter, _BiIter&gt;
<a name="l00758"></a>00758     {
<a name="l00759"></a>00759     <span class="keyword">public</span>:
<a name="l00760"></a>00760       <span class="keyword">typedef</span> <span class="keyword">typename</span> iterator_traits&lt;_BiIter&gt;::value_type      value_type;
<a name="l00761"></a>00761       <span class="keyword">typedef</span> <span class="keyword">typename</span> iterator_traits&lt;_BiIter&gt;::difference_type
<a name="l00762"></a>00762                                                             difference_type;
<a name="l00763"></a>00763       <span class="keyword">typedef</span> _BiIter                                              iterator;
<a name="l00764"></a>00764       <span class="keyword">typedef</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">std::basic_string&lt;value_type&gt;</a>                     <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">string_type</a>;
<a name="l00765"></a>00765 
<a name="l00766"></a>00766     <span class="keyword">public</span>:
<a name="l00767"></a>00767       <span class="keywordtype">bool</span> matched;
<a name="l00768"></a>00768       
<a name="l00769"></a>00769       constexpr <a class="code" href="a00704.html">sub_match</a>() : matched() { }
<a name="l00770"></a>00770 <span class="comment"></span>
<a name="l00771"></a>00771 <span class="comment">      /**</span>
<a name="l00772"></a>00772 <span class="comment">       * Gets the length of the matching sequence.</span>
<a name="l00773"></a>00773 <span class="comment">       */</span>
<a name="l00774"></a>00774       difference_type
<a name="l00775"></a><a class="code" href="a00704.html#a74f61cff4cba887613e5428260f882ed">00775</a>       <a class="code" href="a00704.html#a74f61cff4cba887613e5428260f882ed">length</a>()<span class="keyword"> const</span>
<a name="l00776"></a>00776 <span class="keyword">      </span>{ <span class="keywordflow">return</span> this-&gt;matched ? <a class="code" href="a01137.html#ae528703a7890e085ad7aecd06bf9aec9" title="A generalization of pointer arithmetic.">std::distance</a>(this-&gt;<a class="code" href="a00263.html#a198b03cffc037835dc1dc01c926ce251" title="second_type is the second bound type">first</a>, this-&gt;<a class="code" href="a00263.html#a91179413226db12e66346d3673b7835f" title="first is a copy of the first object">second</a>) : 0; }
<a name="l00777"></a>00777 <span class="comment"></span>
<a name="l00778"></a>00778 <span class="comment">      /**</span>
<a name="l00779"></a>00779 <span class="comment">       * @brief Gets the matching sequence as a string.</span>
<a name="l00780"></a>00780 <span class="comment">       *</span>
<a name="l00781"></a>00781 <span class="comment">       * @returns the matching sequence as a string.</span>
<a name="l00782"></a>00782 <span class="comment">       *</span>
<a name="l00783"></a>00783 <span class="comment">       * This is the implicit conversion operator.  It is identical to the</span>
<a name="l00784"></a>00784 <span class="comment">       * str() member function except that it will want to pop up in</span>
<a name="l00785"></a>00785 <span class="comment">       * unexpected places and cause a great deal of confusion and cursing</span>
<a name="l00786"></a>00786 <span class="comment">       * from the unwary.</span>
<a name="l00787"></a>00787 <span class="comment">       */</span>
<a name="l00788"></a><a class="code" href="a00704.html#aa1419d9c0b0e55127b50126a9a31645f">00788</a>       <a class="code" href="a00704.html#aa1419d9c0b0e55127b50126a9a31645f" title="Gets the matching sequence as a string.">operator string_type</a>()<span class="keyword"> const</span>
<a name="l00789"></a>00789 <span class="keyword">      </span>{
<a name="l00790"></a>00790     <span class="keywordflow">return</span> this-&gt;matched
<a name="l00791"></a>00791       ? <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">string_type</a>(this-&gt;<a class="code" href="a00263.html#a198b03cffc037835dc1dc01c926ce251" title="second_type is the second bound type">first</a>, this-&gt;<a class="code" href="a00263.html#a91179413226db12e66346d3673b7835f" title="first is a copy of the first object">second</a>)
<a name="l00792"></a>00792       : string_type();
<a name="l00793"></a>00793       }
<a name="l00794"></a>00794       <span class="comment"></span>
<a name="l00795"></a>00795 <span class="comment">      /**</span>
<a name="l00796"></a>00796 <span class="comment">       * @brief Gets the matching sequence as a string.</span>
<a name="l00797"></a>00797 <span class="comment">       *</span>
<a name="l00798"></a>00798 <span class="comment">       * @returns the matching sequence as a string.</span>
<a name="l00799"></a>00799 <span class="comment">       */</span>
<a name="l00800"></a>00800       string_type
<a name="l00801"></a><a class="code" href="a00704.html#ad8c99d45b2d8f0066d06284bdb5dfcbd">00801</a>       <a class="code" href="a00704.html#ad8c99d45b2d8f0066d06284bdb5dfcbd" title="Gets the matching sequence as a string.">str</a>()<span class="keyword"> const</span>
<a name="l00802"></a>00802 <span class="keyword">      </span>{
<a name="l00803"></a>00803     <span class="keywordflow">return</span> this-&gt;matched
<a name="l00804"></a>00804       ? <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">string_type</a>(this-&gt;<a class="code" href="a00263.html#a198b03cffc037835dc1dc01c926ce251" title="second_type is the second bound type">first</a>, this-&gt;<a class="code" href="a00263.html#a91179413226db12e66346d3673b7835f" title="first is a copy of the first object">second</a>)
<a name="l00805"></a>00805       : string_type();
<a name="l00806"></a>00806       }
<a name="l00807"></a>00807       <span class="comment"></span>
<a name="l00808"></a>00808 <span class="comment">      /**</span>
<a name="l00809"></a>00809 <span class="comment">       * @brief Compares this and another matched sequence.</span>
<a name="l00810"></a>00810 <span class="comment">       *</span>
<a name="l00811"></a>00811 <span class="comment">       * @param s Another matched sequence to compare to this one.</span>
<a name="l00812"></a>00812 <span class="comment">       *</span>
<a name="l00813"></a>00813 <span class="comment">       * @retval &lt;0 this matched sequence will collate before @p s.</span>
<a name="l00814"></a>00814 <span class="comment">       * @retval =0 this matched sequence is equivalent to @p s.</span>
<a name="l00815"></a>00815 <span class="comment">       * @retval &lt;0 this matched sequence will collate after @p s.</span>
<a name="l00816"></a>00816 <span class="comment">       */</span>
<a name="l00817"></a>00817       <span class="keywordtype">int</span>
<a name="l00818"></a><a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae">00818</a>       <a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(<span class="keyword">const</span> sub_match&amp; __s)<span class="keyword"> const</span>
<a name="l00819"></a>00819 <span class="keyword">      </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00704.html#ad8c99d45b2d8f0066d06284bdb5dfcbd" title="Gets the matching sequence as a string.">str</a>().<a class="code" href="a00253.html#a206b096f59ca71864c3ad5f80065e582" title="Compare to a string.">compare</a>(__s.<a class="code" href="a00704.html#ad8c99d45b2d8f0066d06284bdb5dfcbd" title="Gets the matching sequence as a string.">str</a>()); }
<a name="l00820"></a>00820 <span class="comment"></span>
<a name="l00821"></a>00821 <span class="comment">      /**</span>
<a name="l00822"></a>00822 <span class="comment">       * @brief Compares this sub_match to a string.</span>
<a name="l00823"></a>00823 <span class="comment">       *</span>
<a name="l00824"></a>00824 <span class="comment">       * @param s A string to compare to this sub_match.</span>
<a name="l00825"></a>00825 <span class="comment">       *</span>
<a name="l00826"></a>00826 <span class="comment">       * @retval &lt;0 this matched sequence will collate before @p s.</span>
<a name="l00827"></a>00827 <span class="comment">       * @retval =0 this matched sequence is equivalent to @p s.</span>
<a name="l00828"></a>00828 <span class="comment">       * @retval &lt;0 this matched sequence will collate after @p s.</span>
<a name="l00829"></a>00829 <span class="comment">       */</span>
<a name="l00830"></a>00830       <span class="keywordtype">int</span>
<a name="l00831"></a><a class="code" href="a00704.html#adb0557e6068182cb136e524f1fe016a1">00831</a>       <a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">string_type</a>&amp; __s)<span class="keyword"> const</span>
<a name="l00832"></a>00832 <span class="keyword">      </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00704.html#ad8c99d45b2d8f0066d06284bdb5dfcbd" title="Gets the matching sequence as a string.">str</a>().<a class="code" href="a00253.html#a206b096f59ca71864c3ad5f80065e582" title="Compare to a string.">compare</a>(__s); }
<a name="l00833"></a>00833       <span class="comment"></span>
<a name="l00834"></a>00834 <span class="comment">      /**</span>
<a name="l00835"></a>00835 <span class="comment">       * @brief Compares this sub_match to a C-style string.</span>
<a name="l00836"></a>00836 <span class="comment">       *</span>
<a name="l00837"></a>00837 <span class="comment">       * @param s A C-style string to compare to this sub_match.</span>
<a name="l00838"></a>00838 <span class="comment">       *</span>
<a name="l00839"></a>00839 <span class="comment">       * @retval &lt;0 this matched sequence will collate before @p s.</span>
<a name="l00840"></a>00840 <span class="comment">       * @retval =0 this matched sequence is equivalent to @p s.</span>
<a name="l00841"></a>00841 <span class="comment">       * @retval &lt;0 this matched sequence will collate after @p s.</span>
<a name="l00842"></a>00842 <span class="comment">       */</span>
<a name="l00843"></a>00843       <span class="keywordtype">int</span>
<a name="l00844"></a><a class="code" href="a00704.html#ab22cf4efb0e5c925cc965ac364569133">00844</a>       <a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(<span class="keyword">const</span> value_type* __s)<span class="keyword"> const</span>
<a name="l00845"></a>00845 <span class="keyword">      </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00704.html#ad8c99d45b2d8f0066d06284bdb5dfcbd" title="Gets the matching sequence as a string.">str</a>().<a class="code" href="a00253.html#a206b096f59ca71864c3ad5f80065e582" title="Compare to a string.">compare</a>(__s); }
<a name="l00846"></a>00846     };
<a name="l00847"></a>00847   
<a name="l00848"></a>00848   <span class="comment"></span>
<a name="l00849"></a>00849 <span class="comment">  /** @brief Standard regex submatch over a C-style null-terminated string. */</span>
<a name="l00850"></a><a class="code" href="a01192.html#ga29090c6f0fdf0d3241cf79e759838eeb">00850</a>   <span class="keyword">typedef</span> <a class="code" href="a00704.html">sub_match&lt;const char*&gt;</a>             <a class="code" href="a01192.html#ga29090c6f0fdf0d3241cf79e759838eeb" title="Standard regex submatch over a C-style null-terminated string.">csub_match</a>;<span class="comment"></span>
<a name="l00851"></a>00851 <span class="comment">  /** @brief Standard regex submatch over a standard string. */</span>
<a name="l00852"></a><a class="code" href="a01192.html#ga1339fbccc0b05ed8cfe8c3afa83e9a4b">00852</a>   <span class="keyword">typedef</span> <a class="code" href="a00704.html">sub_match&lt;string::const_iterator&gt;</a>  <a class="code" href="a01192.html#ga1339fbccc0b05ed8cfe8c3afa83e9a4b" title="Standard regex submatch over a standard string.">ssub_match</a>;
<a name="l00853"></a>00853 <span class="preprocessor">#ifdef _GLIBCXX_USE_WCHAR_T</span>
<a name="l00854"></a>00854 <span class="preprocessor"></span><span class="comment">  /** @brief Regex submatch over a C-style null-terminated wide string. */</span>
<a name="l00855"></a><a class="code" href="a01192.html#gaa0c750b2841582cefabadec3f0683bb9">00855</a>   <span class="keyword">typedef</span> <a class="code" href="a00704.html">sub_match&lt;const wchar_t*&gt;</a>          <a class="code" href="a01192.html#gaa0c750b2841582cefabadec3f0683bb9" title="Regex submatch over a C-style null-terminated wide string.">wcsub_match</a>;<span class="comment"></span>
<a name="l00856"></a>00856 <span class="comment">  /** @brief Regex submatch over a standard wide string. */</span>
<a name="l00857"></a><a class="code" href="a01192.html#ga093a1ad2914d74a3fafb7baa78a3deb6">00857</a>   <span class="keyword">typedef</span> <a class="code" href="a00704.html">sub_match&lt;wstring::const_iterator&gt;</a> <a class="code" href="a01192.html#ga093a1ad2914d74a3fafb7baa78a3deb6" title="Regex submatch over a standard wide string.">wssub_match</a>;
<a name="l00858"></a>00858 <span class="preprocessor">#endif</span>
<a name="l00859"></a>00859 <span class="preprocessor"></span>
<a name="l00860"></a>00860   <span class="comment">// [7.9.2] sub_match non-member operators</span>
<a name="l00861"></a>00861   <span class="comment"></span>
<a name="l00862"></a>00862 <span class="comment">  /**</span>
<a name="l00863"></a>00863 <span class="comment">   * @brief Tests the equivalence of two regular expression submatches.</span>
<a name="l00864"></a>00864 <span class="comment">   * @param lhs First regular expression submatch.</span>
<a name="l00865"></a>00865 <span class="comment">   * @param rhs Second regular expression submatch.</span>
<a name="l00866"></a>00866 <span class="comment">   * @returns true if @a lhs  is equivalent to @a rhs, false otherwise.</span>
<a name="l00867"></a>00867 <span class="comment">   */</span>
<a name="l00868"></a>00868   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _BiIter&gt;
<a name="l00869"></a>00869     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l00870"></a><a class="code" href="a01192.html#ga5cb3b0606fdd383ef8a8df70790409ea">00870</a>     operator==(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_BiIter&gt;</a>&amp; __lhs,
<a name="l00871"></a>00871            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_BiIter&gt;</a>&amp; __rhs)
<a name="l00872"></a>00872     { <span class="keywordflow">return</span> __lhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(__rhs) == 0; }
<a name="l00873"></a>00873 <span class="comment"></span>
<a name="l00874"></a>00874 <span class="comment">  /**</span>
<a name="l00875"></a>00875 <span class="comment">   * @brief Tests the inequivalence of two regular expression submatches.</span>
<a name="l00876"></a>00876 <span class="comment">   * @param lhs First regular expression submatch.</span>
<a name="l00877"></a>00877 <span class="comment">   * @param rhs Second regular expression submatch.</span>
<a name="l00878"></a>00878 <span class="comment">   * @returns true if @a lhs  is not equivalent to @a rhs, false otherwise.</span>
<a name="l00879"></a>00879 <span class="comment">   */</span>
<a name="l00880"></a>00880   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _BiIter&gt;
<a name="l00881"></a>00881     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l00882"></a><a class="code" href="a01192.html#ga9a166f80a5f87360d07c811a067d381b">00882</a>     operator!=(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_BiIter&gt;</a>&amp; __lhs,
<a name="l00883"></a>00883            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_BiIter&gt;</a>&amp; __rhs)
<a name="l00884"></a>00884     { <span class="keywordflow">return</span> __lhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(__rhs) != 0; }
<a name="l00885"></a>00885 <span class="comment"></span>
<a name="l00886"></a>00886 <span class="comment">  /**</span>
<a name="l00887"></a>00887 <span class="comment">   * @brief Tests the ordering of two regular expression submatches.</span>
<a name="l00888"></a>00888 <span class="comment">   * @param lhs First regular expression submatch.</span>
<a name="l00889"></a>00889 <span class="comment">   * @param rhs Second regular expression submatch.</span>
<a name="l00890"></a>00890 <span class="comment">   * @returns true if @a lhs precedes @a rhs, false otherwise.</span>
<a name="l00891"></a>00891 <span class="comment">   */</span>
<a name="l00892"></a>00892   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _BiIter&gt;
<a name="l00893"></a>00893     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l00894"></a><a class="code" href="a01192.html#gab352d83e7bd3ae2139b33854ed82e00f">00894</a>     operator&lt;(const sub_match&lt;_BiIter&gt;&amp; __lhs,
<a name="l00895"></a>00895           <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_BiIter&gt;</a>&amp; __rhs)
<a name="l00896"></a>00896     { <span class="keywordflow">return</span> __lhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(__rhs) &lt; 0; }
<a name="l00897"></a>00897 <span class="comment"></span>
<a name="l00898"></a>00898 <span class="comment">  /**</span>
<a name="l00899"></a>00899 <span class="comment">   * @brief Tests the ordering of two regular expression submatches.</span>
<a name="l00900"></a>00900 <span class="comment">   * @param lhs First regular expression submatch.</span>
<a name="l00901"></a>00901 <span class="comment">   * @param rhs Second regular expression submatch.</span>
<a name="l00902"></a>00902 <span class="comment">   * @returns true if @a lhs does not succeed @a rhs, false otherwise.</span>
<a name="l00903"></a>00903 <span class="comment">   */</span>
<a name="l00904"></a>00904   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _BiIter&gt;
<a name="l00905"></a>00905     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l00906"></a><a class="code" href="a01192.html#ga5b5c7b55851facecff9aaf5fe351d45a">00906</a>     operator&lt;=(const sub_match&lt;_BiIter&gt;&amp; __lhs,
<a name="l00907"></a>00907            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_BiIter&gt;</a>&amp; __rhs)
<a name="l00908"></a>00908     { <span class="keywordflow">return</span> __lhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(__rhs) &lt;= 0; }
<a name="l00909"></a>00909 <span class="comment"></span>
<a name="l00910"></a>00910 <span class="comment">  /**</span>
<a name="l00911"></a>00911 <span class="comment">   * @brief Tests the ordering of two regular expression submatches.</span>
<a name="l00912"></a>00912 <span class="comment">   * @param lhs First regular expression submatch.</span>
<a name="l00913"></a>00913 <span class="comment">   * @param rhs Second regular expression submatch.</span>
<a name="l00914"></a>00914 <span class="comment">   * @returns true if @a lhs does not precede @a rhs, false otherwise.</span>
<a name="l00915"></a>00915 <span class="comment">   */</span>
<a name="l00916"></a>00916   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _BiIter&gt;
<a name="l00917"></a>00917     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l00918"></a><a class="code" href="a01192.html#gac26ebfadb93d752c2e6ba71b98985e0f">00918</a>     operator&gt;=(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_BiIter&gt;</a>&amp; __lhs,
<a name="l00919"></a>00919            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_BiIter&gt;</a>&amp; __rhs)
<a name="l00920"></a>00920     { <span class="keywordflow">return</span> __lhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(__rhs) &gt;= 0; }
<a name="l00921"></a>00921 <span class="comment"></span>
<a name="l00922"></a>00922 <span class="comment">  /**</span>
<a name="l00923"></a>00923 <span class="comment">   * @brief Tests the ordering of two regular expression submatches.</span>
<a name="l00924"></a>00924 <span class="comment">   * @param lhs First regular expression submatch.</span>
<a name="l00925"></a>00925 <span class="comment">   * @param rhs Second regular expression submatch.</span>
<a name="l00926"></a>00926 <span class="comment">   * @returns true if @a lhs succeeds @a rhs, false otherwise.</span>
<a name="l00927"></a>00927 <span class="comment">   */</span>
<a name="l00928"></a>00928   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _BiIter&gt;
<a name="l00929"></a>00929     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l00930"></a><a class="code" href="a01192.html#gacc530af301089f0865556476a2bb9263">00930</a>     operator&gt;(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_BiIter&gt;</a>&amp; __lhs,
<a name="l00931"></a>00931           <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_BiIter&gt;</a>&amp; __rhs)
<a name="l00932"></a>00932     { <span class="keywordflow">return</span> __lhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(__rhs) &gt; 0; }
<a name="l00933"></a>00933 <span class="comment"></span>
<a name="l00934"></a>00934 <span class="comment">  /**</span>
<a name="l00935"></a>00935 <span class="comment">   * @brief Tests the equivalence of a string and a regular expression</span>
<a name="l00936"></a>00936 <span class="comment">   *        submatch.</span>
<a name="l00937"></a>00937 <span class="comment">   * @param lhs A string.</span>
<a name="l00938"></a>00938 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l00939"></a>00939 <span class="comment">   * @returns true if @a lhs  is equivalent to @a rhs, false otherwise.</span>
<a name="l00940"></a>00940 <span class="comment">   */</span>
<a name="l00941"></a>00941   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _Ch_alloc&gt;
<a name="l00942"></a>00942     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l00943"></a><a class="code" href="a01192.html#gad31593edbbfaa09085c05d674aeb9f18">00943</a>     operator==(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;
<a name="l00944"></a>00944            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type,
<a name="l00945"></a>00945            _Ch_traits, _Ch_alloc&gt;&amp; __lhs,
<a name="l00946"></a>00946            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l00947"></a>00947     { <span class="keywordflow">return</span> __rhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(__lhs.c_str()) == 0; }
<a name="l00948"></a>00948 <span class="comment"></span>
<a name="l00949"></a>00949 <span class="comment">  /**</span>
<a name="l00950"></a>00950 <span class="comment">   * @brief Tests the inequivalence of a string and a regular expression</span>
<a name="l00951"></a>00951 <span class="comment">   *        submatch.</span>
<a name="l00952"></a>00952 <span class="comment">   * @param lhs A string.</span>
<a name="l00953"></a>00953 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l00954"></a>00954 <span class="comment">   * @returns true if @a lhs  is not equivalent to @a rhs, false otherwise.</span>
<a name="l00955"></a>00955 <span class="comment">   */</span>
<a name="l00956"></a>00956   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _Ch_alloc&gt;
<a name="l00957"></a>00957     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l00958"></a><a class="code" href="a01192.html#gadbec31ee6cde811674fbacbe1aa44da5">00958</a>     operator!=(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;
<a name="l00959"></a>00959            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type,
<a name="l00960"></a>00960            _Ch_traits, _Ch_alloc&gt;&amp; __lhs, <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l00961"></a>00961     { <span class="keywordflow">return</span> !(__lhs == __rhs); }
<a name="l00962"></a>00962 <span class="comment"></span>
<a name="l00963"></a>00963 <span class="comment">  /**</span>
<a name="l00964"></a>00964 <span class="comment">   * @brief Tests the ordering of a string and a regular expression submatch.</span>
<a name="l00965"></a>00965 <span class="comment">   * @param lhs A string.</span>
<a name="l00966"></a>00966 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l00967"></a>00967 <span class="comment">   * @returns true if @a lhs precedes @a rhs, false otherwise.</span>
<a name="l00968"></a>00968 <span class="comment">   */</span>
<a name="l00969"></a>00969   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _Ch_alloc&gt;
<a name="l00970"></a>00970     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l00971"></a><a class="code" href="a01192.html#ga5ec3dcc1f7a754fdabe9aeac64c54cff">00971</a>     operator&lt;(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;
<a name="l00972"></a>00972           <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type,
<a name="l00973"></a>00973           _Ch_traits, _Ch_alloc&gt;&amp; __lhs, <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l00974"></a>00974      { <span class="keywordflow">return</span> __rhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(__lhs.c_str()) &gt; 0; }
<a name="l00975"></a>00975 <span class="comment"></span>
<a name="l00976"></a>00976 <span class="comment">  /**</span>
<a name="l00977"></a>00977 <span class="comment">   * @brief Tests the ordering of a string and a regular expression submatch.</span>
<a name="l00978"></a>00978 <span class="comment">   * @param lhs A string.</span>
<a name="l00979"></a>00979 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l00980"></a>00980 <span class="comment">   * @returns true if @a lhs succeeds @a rhs, false otherwise.</span>
<a name="l00981"></a>00981 <span class="comment">   */</span>
<a name="l00982"></a>00982   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _Ch_alloc&gt;
<a name="l00983"></a>00983     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l00984"></a><a class="code" href="a01192.html#ga63e8d9b3aa12b447aa31dd39c973429c">00984</a>     operator&gt;(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;
<a name="l00985"></a>00985           <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type, 
<a name="l00986"></a>00986           _Ch_traits, _Ch_alloc&gt;&amp; __lhs, <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l00987"></a>00987     { <span class="keywordflow">return</span> __rhs &lt; __lhs; }
<a name="l00988"></a>00988 <span class="comment"></span>
<a name="l00989"></a>00989 <span class="comment">  /**</span>
<a name="l00990"></a>00990 <span class="comment">   * @brief Tests the ordering of a string and a regular expression submatch.</span>
<a name="l00991"></a>00991 <span class="comment">   * @param lhs A string.</span>
<a name="l00992"></a>00992 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l00993"></a>00993 <span class="comment">   * @returns true if @a lhs does not precede @a rhs, false otherwise.</span>
<a name="l00994"></a>00994 <span class="comment">   */</span>
<a name="l00995"></a>00995   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _Ch_alloc&gt;
<a name="l00996"></a>00996     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l00997"></a><a class="code" href="a01192.html#gac6fe9ca5e0a57856e43bf85a17ea43bf">00997</a>     operator&gt;=(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;
<a name="l00998"></a>00998            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type,
<a name="l00999"></a>00999            _Ch_traits, _Ch_alloc&gt;&amp; __lhs, <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01000"></a>01000     { <span class="keywordflow">return</span> !(__lhs &lt; __rhs); }
<a name="l01001"></a>01001 <span class="comment"></span>
<a name="l01002"></a>01002 <span class="comment">  /**</span>
<a name="l01003"></a>01003 <span class="comment">   * @brief Tests the ordering of a string and a regular expression submatch.</span>
<a name="l01004"></a>01004 <span class="comment">   * @param lhs A string.</span>
<a name="l01005"></a>01005 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l01006"></a>01006 <span class="comment">   * @returns true if @a lhs does not succeed @a rhs, false otherwise.</span>
<a name="l01007"></a>01007 <span class="comment">   */</span>
<a name="l01008"></a>01008   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _Ch_alloc&gt;
<a name="l01009"></a>01009     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01010"></a><a class="code" href="a01192.html#gaeafd67c6b5bf8d3313cf8efc368ac4ac">01010</a>     operator&lt;=(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;
<a name="l01011"></a>01011            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type,
<a name="l01012"></a>01012            _Ch_traits, _Ch_alloc&gt;&amp; __lhs, <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01013"></a>01013     { <span class="keywordflow">return</span> !(__rhs &lt; __lhs); }
<a name="l01014"></a>01014 <span class="comment"></span>
<a name="l01015"></a>01015 <span class="comment">  /**</span>
<a name="l01016"></a>01016 <span class="comment">   * @brief Tests the equivalence of a regular expression submatch and a</span>
<a name="l01017"></a>01017 <span class="comment">   *        string.</span>
<a name="l01018"></a>01018 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01019"></a>01019 <span class="comment">   * @param rhs A string.</span>
<a name="l01020"></a>01020 <span class="comment">   * @returns true if @a lhs is equivalent to @a rhs, false otherwise.</span>
<a name="l01021"></a>01021 <span class="comment">   */</span>
<a name="l01022"></a>01022   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _Ch_alloc&gt;
<a name="l01023"></a>01023     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01024"></a><a class="code" href="a01192.html#gad7d1a320f38964fd52c2e6021b8c7516">01024</a>     operator==(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __lhs,
<a name="l01025"></a>01025            <span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;
<a name="l01026"></a>01026            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type,
<a name="l01027"></a>01027            _Ch_traits, _Ch_alloc&gt;&amp; __rhs)
<a name="l01028"></a>01028     { <span class="keywordflow">return</span> __lhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(__rhs.c_str()) == 0; }
<a name="l01029"></a>01029 <span class="comment"></span>
<a name="l01030"></a>01030 <span class="comment">  /**</span>
<a name="l01031"></a>01031 <span class="comment">   * @brief Tests the inequivalence of a regular expression submatch and a</span>
<a name="l01032"></a>01032 <span class="comment">   *        string.</span>
<a name="l01033"></a>01033 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01034"></a>01034 <span class="comment">   * @param rhs A string.</span>
<a name="l01035"></a>01035 <span class="comment">   * @returns true if @a lhs is not equivalent to @a rhs, false otherwise.</span>
<a name="l01036"></a>01036 <span class="comment">   */</span>
<a name="l01037"></a>01037   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _Ch_alloc&gt;
<a name="l01038"></a>01038     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01039"></a><a class="code" href="a01192.html#gaf110ddf4964fdc0560e316945ffa6a5c">01039</a>     operator!=(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __lhs,
<a name="l01040"></a>01040            <span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;
<a name="l01041"></a>01041            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type,
<a name="l01042"></a>01042            _Ch_traits, _Ch_alloc&gt;&amp; __rhs)
<a name="l01043"></a>01043     { <span class="keywordflow">return</span> !(__lhs == __rhs); }
<a name="l01044"></a>01044 <span class="comment"></span>
<a name="l01045"></a>01045 <span class="comment">  /**</span>
<a name="l01046"></a>01046 <span class="comment">   * @brief Tests the ordering of a regular expression submatch and a string.</span>
<a name="l01047"></a>01047 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01048"></a>01048 <span class="comment">   * @param rhs A string.</span>
<a name="l01049"></a>01049 <span class="comment">   * @returns true if @a lhs precedes @a rhs, false otherwise.</span>
<a name="l01050"></a>01050 <span class="comment">   */</span>
<a name="l01051"></a>01051   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">class</span> _Ch_traits, <span class="keyword">class</span> _Ch_alloc&gt;
<a name="l01052"></a>01052     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01053"></a><a class="code" href="a01192.html#gab707674854c3df135144e4c02833a877">01053</a>     operator&lt;(const sub_match&lt;_Bi_iter&gt;&amp; __lhs,
<a name="l01054"></a>01054           <span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;
<a name="l01055"></a>01055           <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type,
<a name="l01056"></a>01056           _Ch_traits, _Ch_alloc&gt;&amp; __rhs)
<a name="l01057"></a>01057     { <span class="keywordflow">return</span> __lhs.<a class="code" href="a00253.html#a206b096f59ca71864c3ad5f80065e582" title="Compare to a string.">compare</a>(__rhs.c_str()) &lt; 0; }
<a name="l01058"></a>01058 <span class="comment"></span>
<a name="l01059"></a>01059 <span class="comment">  /**</span>
<a name="l01060"></a>01060 <span class="comment">   * @brief Tests the ordering of a regular expression submatch and a string.</span>
<a name="l01061"></a>01061 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01062"></a>01062 <span class="comment">   * @param rhs A string.</span>
<a name="l01063"></a>01063 <span class="comment">   * @returns true if @a lhs succeeds @a rhs, false otherwise.</span>
<a name="l01064"></a>01064 <span class="comment">   */</span>
<a name="l01065"></a>01065   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">class</span> _Ch_traits, <span class="keyword">class</span> _Ch_alloc&gt;
<a name="l01066"></a>01066     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01067"></a><a class="code" href="a01192.html#gabe8f6f628b71f181d6273acec585df38">01067</a>     operator&gt;(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __lhs,
<a name="l01068"></a>01068           <span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;
<a name="l01069"></a>01069           <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type,
<a name="l01070"></a>01070           _Ch_traits, _Ch_alloc&gt;&amp; __rhs)
<a name="l01071"></a>01071     { <span class="keywordflow">return</span> __rhs &lt; __lhs; }
<a name="l01072"></a>01072 <span class="comment"></span>
<a name="l01073"></a>01073 <span class="comment">  /**</span>
<a name="l01074"></a>01074 <span class="comment">   * @brief Tests the ordering of a regular expression submatch and a string.</span>
<a name="l01075"></a>01075 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01076"></a>01076 <span class="comment">   * @param rhs A string.</span>
<a name="l01077"></a>01077 <span class="comment">   * @returns true if @a lhs does not precede @a rhs, false otherwise.</span>
<a name="l01078"></a>01078 <span class="comment">   */</span>
<a name="l01079"></a>01079   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">class</span> _Ch_traits, <span class="keyword">class</span> _Ch_alloc&gt;
<a name="l01080"></a>01080     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01081"></a><a class="code" href="a01192.html#gaa5ffe0f35c89bfb9bbf84ba43e337384">01081</a>     operator&gt;=(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __lhs,
<a name="l01082"></a>01082            <span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;
<a name="l01083"></a>01083            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type,
<a name="l01084"></a>01084            _Ch_traits, _Ch_alloc&gt;&amp; __rhs)
<a name="l01085"></a>01085     { <span class="keywordflow">return</span> !(__lhs &lt; __rhs); }
<a name="l01086"></a>01086 <span class="comment"></span>
<a name="l01087"></a>01087 <span class="comment">  /**</span>
<a name="l01088"></a>01088 <span class="comment">   * @brief Tests the ordering of a regular expression submatch and a string.</span>
<a name="l01089"></a>01089 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01090"></a>01090 <span class="comment">   * @param rhs A string.</span>
<a name="l01091"></a>01091 <span class="comment">   * @returns true if @a lhs does not succeed @a rhs, false otherwise.</span>
<a name="l01092"></a>01092 <span class="comment">   */</span>
<a name="l01093"></a>01093   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">class</span> _Ch_traits, <span class="keyword">class</span> _Ch_alloc&gt;
<a name="l01094"></a>01094     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01095"></a><a class="code" href="a01192.html#gac0f884e80c8f586df1e42110016af05e">01095</a>     operator&lt;=(const sub_match&lt;_Bi_iter&gt;&amp; __lhs,
<a name="l01096"></a>01096            <span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;
<a name="l01097"></a>01097            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type,
<a name="l01098"></a>01098            _Ch_traits, _Ch_alloc&gt;&amp; __rhs)
<a name="l01099"></a>01099     { <span class="keywordflow">return</span> !(__rhs &lt; __lhs); }
<a name="l01100"></a>01100 <span class="comment"></span>
<a name="l01101"></a>01101 <span class="comment">  /**</span>
<a name="l01102"></a>01102 <span class="comment">   * @brief Tests the equivalence of a C string and a regular expression</span>
<a name="l01103"></a>01103 <span class="comment">   *        submatch.</span>
<a name="l01104"></a>01104 <span class="comment">   * @param lhs A C string.</span>
<a name="l01105"></a>01105 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l01106"></a>01106 <span class="comment">   * @returns true if @a lhs  is equivalent to @a rhs, false otherwise.</span>
<a name="l01107"></a>01107 <span class="comment">   */</span>
<a name="l01108"></a>01108   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01109"></a>01109     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01110"></a><a class="code" href="a01192.html#gab5bc836fd8c90f27cb52064a5776a007">01110</a>     operator==(<span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>* __lhs,
<a name="l01111"></a>01111            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01112"></a>01112     { <span class="keywordflow">return</span> __rhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(__lhs) == 0; }
<a name="l01113"></a>01113 <span class="comment"></span>
<a name="l01114"></a>01114 <span class="comment">  /**</span>
<a name="l01115"></a>01115 <span class="comment">   * @brief Tests the inequivalence of an iterator value and a regular</span>
<a name="l01116"></a>01116 <span class="comment">   *        expression submatch.</span>
<a name="l01117"></a>01117 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01118"></a>01118 <span class="comment">   * @param rhs A string.</span>
<a name="l01119"></a>01119 <span class="comment">   * @returns true if @a lhs is not equivalent to @a rhs, false otherwise.</span>
<a name="l01120"></a>01120 <span class="comment">   */</span>
<a name="l01121"></a>01121   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01122"></a>01122     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01123"></a><a class="code" href="a01192.html#ga28a4c26e6ab8f3cafb08118879be2056">01123</a>     operator!=(<span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>* __lhs,
<a name="l01124"></a>01124            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01125"></a>01125     { <span class="keywordflow">return</span> !(__lhs == __rhs); }
<a name="l01126"></a>01126 <span class="comment"></span>
<a name="l01127"></a>01127 <span class="comment">  /**</span>
<a name="l01128"></a>01128 <span class="comment">   * @brief Tests the ordering of a string and a regular expression submatch.</span>
<a name="l01129"></a>01129 <span class="comment">   * @param lhs A string.</span>
<a name="l01130"></a>01130 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l01131"></a>01131 <span class="comment">   * @returns true if @a lhs precedes @a rhs, false otherwise.</span>
<a name="l01132"></a>01132 <span class="comment">   */</span>
<a name="l01133"></a>01133   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01134"></a>01134     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01135"></a><a class="code" href="a01192.html#ga8f1bbf44c4327a03227bfbc8fe583adc">01135</a>     operator&lt;(typename iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>* __lhs,
<a name="l01136"></a>01136           <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01137"></a>01137     { <span class="keywordflow">return</span> __rhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(__lhs) &gt; 0; }
<a name="l01138"></a>01138 <span class="comment"></span>
<a name="l01139"></a>01139 <span class="comment">  /**</span>
<a name="l01140"></a>01140 <span class="comment">   * @brief Tests the ordering of a string and a regular expression submatch.</span>
<a name="l01141"></a>01141 <span class="comment">   * @param lhs A string.</span>
<a name="l01142"></a>01142 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l01143"></a>01143 <span class="comment">   * @returns true if @a lhs succeeds @a rhs, false otherwise.</span>
<a name="l01144"></a>01144 <span class="comment">   */</span>
<a name="l01145"></a>01145   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01146"></a>01146     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01147"></a><a class="code" href="a01192.html#ga4a26a6fa36aaafcca04ba88fb78e714f">01147</a>     operator&gt;(<span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>* __lhs,
<a name="l01148"></a>01148           <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01149"></a>01149     { <span class="keywordflow">return</span> __rhs &lt; __lhs; }
<a name="l01150"></a>01150 <span class="comment"></span>
<a name="l01151"></a>01151 <span class="comment">  /**</span>
<a name="l01152"></a>01152 <span class="comment">   * @brief Tests the ordering of a string and a regular expression submatch.</span>
<a name="l01153"></a>01153 <span class="comment">   * @param lhs A string.</span>
<a name="l01154"></a>01154 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l01155"></a>01155 <span class="comment">   * @returns true if @a lhs does not precede @a rhs, false otherwise.</span>
<a name="l01156"></a>01156 <span class="comment">   */</span>
<a name="l01157"></a>01157   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01158"></a>01158     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01159"></a><a class="code" href="a01192.html#gad5eb78475536447049777557e8e5c21b">01159</a>     operator&gt;=(<span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>* __lhs,
<a name="l01160"></a>01160            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01161"></a>01161     { <span class="keywordflow">return</span> !(__lhs &lt; __rhs); }
<a name="l01162"></a>01162 <span class="comment"></span>
<a name="l01163"></a>01163 <span class="comment">  /**</span>
<a name="l01164"></a>01164 <span class="comment">   * @brief Tests the ordering of a string and a regular expression submatch.</span>
<a name="l01165"></a>01165 <span class="comment">   * @param lhs A string.</span>
<a name="l01166"></a>01166 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l01167"></a>01167 <span class="comment">   * @returns true if @a lhs does not succeed @a rhs, false otherwise.</span>
<a name="l01168"></a>01168 <span class="comment">   */</span>
<a name="l01169"></a>01169   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01170"></a>01170     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01171"></a><a class="code" href="a01192.html#gac980327520868fccddfcb4e055fe27eb">01171</a>     operator&lt;=(typename iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>* __lhs,
<a name="l01172"></a>01172            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01173"></a>01173     { <span class="keywordflow">return</span> !(__rhs &lt; __lhs); }
<a name="l01174"></a>01174 <span class="comment"></span>
<a name="l01175"></a>01175 <span class="comment">  /**</span>
<a name="l01176"></a>01176 <span class="comment">   * @brief Tests the equivalence of a regular expression submatch and a</span>
<a name="l01177"></a>01177 <span class="comment">   *        string.</span>
<a name="l01178"></a>01178 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01179"></a>01179 <span class="comment">   * @param rhs A pointer to a string?</span>
<a name="l01180"></a>01180 <span class="comment">   * @returns true if @a lhs  is equivalent to @a rhs, false otherwise.</span>
<a name="l01181"></a>01181 <span class="comment">   */</span>
<a name="l01182"></a>01182   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01183"></a>01183     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01184"></a><a class="code" href="a01192.html#ga9d829c8034cecd7276c2da3e9d0569b3">01184</a>     operator==(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __lhs,
<a name="l01185"></a>01185            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>* __rhs)
<a name="l01186"></a>01186     { <span class="keywordflow">return</span> __lhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(__rhs) == 0; }
<a name="l01187"></a>01187 <span class="comment"></span>
<a name="l01188"></a>01188 <span class="comment">  /**</span>
<a name="l01189"></a>01189 <span class="comment">   * @brief Tests the inequivalence of a regular expression submatch and a</span>
<a name="l01190"></a>01190 <span class="comment">   *        string.</span>
<a name="l01191"></a>01191 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01192"></a>01192 <span class="comment">   * @param rhs A pointer to a string.</span>
<a name="l01193"></a>01193 <span class="comment">   * @returns true if @a lhs is not equivalent to @a rhs, false otherwise.</span>
<a name="l01194"></a>01194 <span class="comment">   */</span>
<a name="l01195"></a>01195   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01196"></a>01196     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01197"></a><a class="code" href="a01192.html#gaf9319b7e888869078b8b880382a7e761">01197</a>     operator!=(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __lhs,
<a name="l01198"></a>01198            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>* __rhs)
<a name="l01199"></a>01199     { <span class="keywordflow">return</span> !(__lhs == __rhs); }
<a name="l01200"></a>01200 <span class="comment"></span>
<a name="l01201"></a>01201 <span class="comment">  /**</span>
<a name="l01202"></a>01202 <span class="comment">   * @brief Tests the ordering of a regular expression submatch and a string.</span>
<a name="l01203"></a>01203 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01204"></a>01204 <span class="comment">   * @param rhs A string.</span>
<a name="l01205"></a>01205 <span class="comment">   * @returns true if @a lhs precedes @a rhs, false otherwise.</span>
<a name="l01206"></a>01206 <span class="comment">   */</span>
<a name="l01207"></a>01207   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01208"></a>01208     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01209"></a><a class="code" href="a01192.html#ga7c35a683443742e22109fa93c4b3afe3">01209</a>     operator&lt;(const sub_match&lt;_Bi_iter&gt;&amp; __lhs,
<a name="l01210"></a>01210           <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>* __rhs)
<a name="l01211"></a>01211     { <span class="keywordflow">return</span> __lhs.compare(__rhs) &lt; 0; }
<a name="l01212"></a>01212 <span class="comment"></span>
<a name="l01213"></a>01213 <span class="comment">  /**</span>
<a name="l01214"></a>01214 <span class="comment">   * @brief Tests the ordering of a regular expression submatch and a string.</span>
<a name="l01215"></a>01215 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01216"></a>01216 <span class="comment">   * @param rhs A string.</span>
<a name="l01217"></a>01217 <span class="comment">   * @returns true if @a lhs succeeds @a rhs, false otherwise.</span>
<a name="l01218"></a>01218 <span class="comment">   */</span>
<a name="l01219"></a>01219   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01220"></a>01220     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01221"></a><a class="code" href="a01192.html#ga5dd30a8294bf4a6c5f687d158ae0a5cc">01221</a>     operator&gt;(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __lhs,
<a name="l01222"></a>01222           <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>* __rhs)
<a name="l01223"></a>01223     { <span class="keywordflow">return</span> __rhs &lt; __lhs; }
<a name="l01224"></a>01224 <span class="comment"></span>
<a name="l01225"></a>01225 <span class="comment">  /**</span>
<a name="l01226"></a>01226 <span class="comment">   * @brief Tests the ordering of a regular expression submatch and a string.</span>
<a name="l01227"></a>01227 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01228"></a>01228 <span class="comment">   * @param rhs A string.</span>
<a name="l01229"></a>01229 <span class="comment">   * @returns true if @a lhs does not precede @a rhs, false otherwise.</span>
<a name="l01230"></a>01230 <span class="comment">   */</span>
<a name="l01231"></a>01231   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01232"></a>01232     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01233"></a><a class="code" href="a01192.html#ga9645c6f61ea9083e1c7e34e6cabca826">01233</a>     operator&gt;=(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __lhs,
<a name="l01234"></a>01234            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>* __rhs)
<a name="l01235"></a>01235     { <span class="keywordflow">return</span> !(__lhs &lt; __rhs); }
<a name="l01236"></a>01236 <span class="comment"></span>
<a name="l01237"></a>01237 <span class="comment">  /**</span>
<a name="l01238"></a>01238 <span class="comment">   * @brief Tests the ordering of a regular expression submatch and a string.</span>
<a name="l01239"></a>01239 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01240"></a>01240 <span class="comment">   * @param rhs A string.</span>
<a name="l01241"></a>01241 <span class="comment">   * @returns true if @a lhs does not succeed @a rhs, false otherwise.</span>
<a name="l01242"></a>01242 <span class="comment">   */</span>
<a name="l01243"></a>01243   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01244"></a>01244     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01245"></a><a class="code" href="a01192.html#gaa4ad6fce3a4bcec60c351f7c8c91454c">01245</a>     operator&lt;=(const sub_match&lt;_Bi_iter&gt;&amp; __lhs,
<a name="l01246"></a>01246            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>* __rhs)
<a name="l01247"></a>01247     { <span class="keywordflow">return</span> !(__rhs &lt; __lhs); }
<a name="l01248"></a>01248 <span class="comment"></span>
<a name="l01249"></a>01249 <span class="comment">  /**</span>
<a name="l01250"></a>01250 <span class="comment">   * @brief Tests the equivalence of a string and a regular expression</span>
<a name="l01251"></a>01251 <span class="comment">   *        submatch.</span>
<a name="l01252"></a>01252 <span class="comment">   * @param lhs A string.</span>
<a name="l01253"></a>01253 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l01254"></a>01254 <span class="comment">   * @returns true if @a lhs is equivalent to @a rhs, false otherwise.</span>
<a name="l01255"></a>01255 <span class="comment">   */</span>
<a name="l01256"></a>01256   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01257"></a>01257     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01258"></a><a class="code" href="a01192.html#ga1e61e0bd9f5d73c503eb21f0baa3bc54">01258</a>     operator==(<span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>&amp; __lhs,
<a name="l01259"></a>01259            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01260"></a>01260     {
<a name="l01261"></a>01261       <span class="keywordflow">return</span> __rhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(<span class="keyword">typename</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;::string_type</a>(1, __lhs))
<a name="l01262"></a>01262              == 0;
<a name="l01263"></a>01263     }
<a name="l01264"></a>01264 <span class="comment"></span>
<a name="l01265"></a>01265 <span class="comment">  /**</span>
<a name="l01266"></a>01266 <span class="comment">   * @brief Tests the inequivalence of a string and a regular expression</span>
<a name="l01267"></a>01267 <span class="comment">   *        submatch.</span>
<a name="l01268"></a>01268 <span class="comment">   * @param lhs A string.</span>
<a name="l01269"></a>01269 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l01270"></a>01270 <span class="comment">   * @returns true if @a lhs is not equivalent to @a rhs, false otherwise.</span>
<a name="l01271"></a>01271 <span class="comment">   */</span>
<a name="l01272"></a>01272   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01273"></a>01273     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01274"></a><a class="code" href="a01192.html#gaaf92124d359342148f3cd4a6bf4c03e3">01274</a>     operator!=(<span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>&amp; __lhs,
<a name="l01275"></a>01275            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01276"></a>01276     { <span class="keywordflow">return</span> !(__lhs == __rhs); }
<a name="l01277"></a>01277 <span class="comment"></span>
<a name="l01278"></a>01278 <span class="comment">  /**</span>
<a name="l01279"></a>01279 <span class="comment">   * @brief Tests the ordering of a string and a regular expression submatch.</span>
<a name="l01280"></a>01280 <span class="comment">   * @param lhs A string.</span>
<a name="l01281"></a>01281 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l01282"></a>01282 <span class="comment">   * @returns true if @a lhs precedes @a rhs, false otherwise.</span>
<a name="l01283"></a>01283 <span class="comment">   */</span>
<a name="l01284"></a>01284   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01285"></a>01285     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01286"></a><a class="code" href="a01192.html#gaf25fef198f268443441021fee430d3d0">01286</a>     operator&lt;(typename iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>&amp; __lhs,
<a name="l01287"></a>01287           <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01288"></a>01288     {
<a name="l01289"></a>01289       <span class="keywordflow">return</span> __rhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(<span class="keyword">typename</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;::string_type</a>(1, __lhs))
<a name="l01290"></a>01290              &gt; 0;
<a name="l01291"></a>01291     }
<a name="l01292"></a>01292 <span class="comment"></span>
<a name="l01293"></a>01293 <span class="comment">  /**</span>
<a name="l01294"></a>01294 <span class="comment">   * @brief Tests the ordering of a string and a regular expression submatch.</span>
<a name="l01295"></a>01295 <span class="comment">   * @param lhs A string.</span>
<a name="l01296"></a>01296 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l01297"></a>01297 <span class="comment">   * @returns true if @a lhs succeeds @a rhs, false otherwise.</span>
<a name="l01298"></a>01298 <span class="comment">   */</span>
<a name="l01299"></a>01299   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01300"></a>01300     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01301"></a><a class="code" href="a01192.html#gaa6f4634607f407618e92099bf4ae5aee">01301</a>     operator&gt;(<span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>&amp; __lhs,
<a name="l01302"></a>01302           <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01303"></a>01303     { <span class="keywordflow">return</span> __rhs &lt; __lhs; }
<a name="l01304"></a>01304 <span class="comment"></span>
<a name="l01305"></a>01305 <span class="comment">  /**</span>
<a name="l01306"></a>01306 <span class="comment">   * @brief Tests the ordering of a string and a regular expression submatch.</span>
<a name="l01307"></a>01307 <span class="comment">   * @param lhs A string.</span>
<a name="l01308"></a>01308 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l01309"></a>01309 <span class="comment">   * @returns true if @a lhs does not precede @a rhs, false otherwise.</span>
<a name="l01310"></a>01310 <span class="comment">   */</span>
<a name="l01311"></a>01311   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01312"></a>01312     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01313"></a><a class="code" href="a01192.html#ga89516a2d12e0a1de1f427d04af5dee23">01313</a>     operator&gt;=(<span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>&amp; __lhs,
<a name="l01314"></a>01314            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01315"></a>01315     { <span class="keywordflow">return</span> !(__lhs &lt; __rhs); }
<a name="l01316"></a>01316 <span class="comment"></span>
<a name="l01317"></a>01317 <span class="comment">  /**</span>
<a name="l01318"></a>01318 <span class="comment">   * @brief Tests the ordering of a string and a regular expression submatch.</span>
<a name="l01319"></a>01319 <span class="comment">   * @param lhs A string.</span>
<a name="l01320"></a>01320 <span class="comment">   * @param rhs A regular expression submatch.</span>
<a name="l01321"></a>01321 <span class="comment">   * @returns true if @a lhs does not succeed @a rhs, false otherwise.</span>
<a name="l01322"></a>01322 <span class="comment">   */</span>
<a name="l01323"></a>01323   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01324"></a>01324     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01325"></a><a class="code" href="a01192.html#gaca78a011f95e27efa9bb378db2698061">01325</a>     operator&lt;=(typename iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>&amp; __lhs,
<a name="l01326"></a>01326            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __rhs)
<a name="l01327"></a>01327     { <span class="keywordflow">return</span> !(__rhs &lt; __lhs); }
<a name="l01328"></a>01328 <span class="comment"></span>
<a name="l01329"></a>01329 <span class="comment">  /**</span>
<a name="l01330"></a>01330 <span class="comment">   * @brief Tests the equivalence of a regular expression submatch and a</span>
<a name="l01331"></a>01331 <span class="comment">   *        string.</span>
<a name="l01332"></a>01332 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01333"></a>01333 <span class="comment">   * @param rhs A const string reference.</span>
<a name="l01334"></a>01334 <span class="comment">   * @returns true if @a lhs  is equivalent to @a rhs, false otherwise.</span>
<a name="l01335"></a>01335 <span class="comment">   */</span>
<a name="l01336"></a>01336   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01337"></a>01337     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01338"></a><a class="code" href="a01192.html#ga924b3c67a50b22c8f5f4576705fd941e">01338</a>     operator==(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __lhs,
<a name="l01339"></a>01339            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>&amp; __rhs)
<a name="l01340"></a>01340     {
<a name="l01341"></a>01341       <span class="keywordflow">return</span> __lhs.<a class="code" href="a00704.html#a6df0d57626fcbb60ecb93af770613dae" title="Compares this and another matched sequence.">compare</a>(<span class="keyword">typename</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;::string_type</a>(1, __rhs))
<a name="l01342"></a>01342              == 0;
<a name="l01343"></a>01343     }
<a name="l01344"></a>01344 <span class="comment"></span>
<a name="l01345"></a>01345 <span class="comment">  /**</span>
<a name="l01346"></a>01346 <span class="comment">   * @brief Tests the inequivalence of a regular expression submatch and a</span>
<a name="l01347"></a>01347 <span class="comment">   *        string.</span>
<a name="l01348"></a>01348 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01349"></a>01349 <span class="comment">   * @param rhs A const string reference.</span>
<a name="l01350"></a>01350 <span class="comment">   * @returns true if @a lhs is not equivalent to @a rhs, false otherwise.</span>
<a name="l01351"></a>01351 <span class="comment">   */</span>
<a name="l01352"></a>01352   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01353"></a>01353     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01354"></a><a class="code" href="a01192.html#ga4e133ecf01167508233505a4abc17a0b">01354</a>     operator!=(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __lhs,
<a name="l01355"></a>01355            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>&amp; __rhs)
<a name="l01356"></a>01356     { <span class="keywordflow">return</span> !(__lhs == __rhs); }
<a name="l01357"></a>01357 <span class="comment"></span>
<a name="l01358"></a>01358 <span class="comment">  /**</span>
<a name="l01359"></a>01359 <span class="comment">   * @brief Tests the ordering of a regular expression submatch and a string.</span>
<a name="l01360"></a>01360 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01361"></a>01361 <span class="comment">   * @param rhs A const string reference.</span>
<a name="l01362"></a>01362 <span class="comment">   * @returns true if @a lhs precedes @a rhs, false otherwise.</span>
<a name="l01363"></a>01363 <span class="comment">   */</span>
<a name="l01364"></a>01364   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01365"></a>01365     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01366"></a><a class="code" href="a01192.html#ga8ea8d1ddb29c4ad0cc2aa12d3193d590">01366</a>     operator&lt;(const sub_match&lt;_Bi_iter&gt;&amp; __lhs,
<a name="l01367"></a>01367           <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>&amp; __rhs)
<a name="l01368"></a>01368     {
<a name="l01369"></a>01369       <span class="keywordflow">return</span> __lhs.compare(<span class="keyword">typename</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;::string_type</a>(1, __rhs))
<a name="l01370"></a>01370              &lt; 0;
<a name="l01371"></a>01371     }
<a name="l01372"></a>01372 <span class="comment"></span>
<a name="l01373"></a>01373 <span class="comment">  /**</span>
<a name="l01374"></a>01374 <span class="comment">   * @brief Tests the ordering of a regular expression submatch and a string.</span>
<a name="l01375"></a>01375 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01376"></a>01376 <span class="comment">   * @param rhs A const string reference.</span>
<a name="l01377"></a>01377 <span class="comment">   * @returns true if @a lhs succeeds @a rhs, false otherwise.</span>
<a name="l01378"></a>01378 <span class="comment">   */</span>
<a name="l01379"></a>01379   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01380"></a>01380     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01381"></a><a class="code" href="a01192.html#gab6ee6883c77b6eb38a4bddbca414cfa6">01381</a>     operator&gt;(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __lhs,
<a name="l01382"></a>01382           <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>&amp; __rhs)
<a name="l01383"></a>01383     { <span class="keywordflow">return</span> __rhs &lt; __lhs; }
<a name="l01384"></a>01384 <span class="comment"></span>
<a name="l01385"></a>01385 <span class="comment">  /**</span>
<a name="l01386"></a>01386 <span class="comment">   * @brief Tests the ordering of a regular expression submatch and a string.</span>
<a name="l01387"></a>01387 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01388"></a>01388 <span class="comment">   * @param rhs A const string reference.</span>
<a name="l01389"></a>01389 <span class="comment">   * @returns true if @a lhs does not precede @a rhs, false otherwise.</span>
<a name="l01390"></a>01390 <span class="comment">   */</span>
<a name="l01391"></a>01391   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01392"></a>01392     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01393"></a><a class="code" href="a01192.html#ga8278225e25f7318cb27a05b020f00582">01393</a>     operator&gt;=(<span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __lhs,
<a name="l01394"></a>01394            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>&amp; __rhs)
<a name="l01395"></a>01395     { <span class="keywordflow">return</span> !(__lhs &lt; __rhs); }
<a name="l01396"></a>01396 <span class="comment"></span>
<a name="l01397"></a>01397 <span class="comment">  /**</span>
<a name="l01398"></a>01398 <span class="comment">   * @brief Tests the ordering of a regular expression submatch and a string.</span>
<a name="l01399"></a>01399 <span class="comment">   * @param lhs A regular expression submatch.</span>
<a name="l01400"></a>01400 <span class="comment">   * @param rhs A const string reference.</span>
<a name="l01401"></a>01401 <span class="comment">   * @returns true if @a lhs does not succeed @a rhs, false otherwise.</span>
<a name="l01402"></a>01402 <span class="comment">   */</span>
<a name="l01403"></a>01403   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01404"></a>01404     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01405"></a><a class="code" href="a01192.html#ga1a9c382cd9b7a1c4aa9cece457bc3b98">01405</a>     operator&lt;=(const sub_match&lt;_Bi_iter&gt;&amp; __lhs,
<a name="l01406"></a>01406            <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type <span class="keyword">const</span>&amp; __rhs)
<a name="l01407"></a>01407     { <span class="keywordflow">return</span> !(__rhs &lt; __lhs); }
<a name="l01408"></a>01408 <span class="comment"></span>
<a name="l01409"></a>01409 <span class="comment">  /**</span>
<a name="l01410"></a>01410 <span class="comment">   * @brief Inserts a matched string into an output stream.</span>
<a name="l01411"></a>01411 <span class="comment">   *</span>
<a name="l01412"></a>01412 <span class="comment">   * @param os The output stream.</span>
<a name="l01413"></a>01413 <span class="comment">   * @param m  A submatch string.</span>
<a name="l01414"></a>01414 <span class="comment">   *</span>
<a name="l01415"></a>01415 <span class="comment">   * @returns the output stream with the submatch string inserted.</span>
<a name="l01416"></a>01416 <span class="comment">   */</span>
<a name="l01417"></a>01417   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_type, <span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01418"></a>01418     <span class="keyword">inline</span>
<a name="l01419"></a>01419     basic_ostream&lt;_Ch_type, _Ch_traits&gt;&amp;
<a name="l01420"></a><a class="code" href="a01192.html#gabd0bed3d5efccca9dfa621b3e9f9c30d">01420</a>     operator&lt;&lt;(basic_ostream&lt;_Ch_type, _Ch_traits&gt;&amp; __os,
<a name="l01421"></a>01421            <span class="keyword">const</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>&amp; __m)
<a name="l01422"></a>01422     { <span class="keywordflow">return</span> __os &lt;&lt; __m.<a class="code" href="a00704.html#ad8c99d45b2d8f0066d06284bdb5dfcbd" title="Gets the matching sequence as a string.">str</a>(); }
<a name="l01423"></a>01423 
<a name="l01424"></a>01424   <span class="comment">// [7.10] Class template match_results</span>
<a name="l01425"></a>01425 
<a name="l01426"></a>01426   <span class="comment">/*</span>
<a name="l01427"></a>01427 <span class="comment">   * Special sub_match object representing an unmatched sub-expression.</span>
<a name="l01428"></a>01428 <span class="comment">   */</span>
<a name="l01429"></a>01429   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter&gt;
<a name="l01430"></a>01430     <span class="keyword">inline</span> <span class="keyword">const</span> sub_match&lt;_Bi_iter&gt;&amp;
<a name="l01431"></a>01431     __unmatched_sub()
<a name="l01432"></a>01432     {
<a name="l01433"></a>01433       <span class="keyword">static</span> <span class="keyword">const</span> sub_match&lt;_Bi_iter&gt; __unmatched = sub_match&lt;_Bi_iter&gt;();
<a name="l01434"></a>01434       <span class="keywordflow">return</span> __unmatched;
<a name="l01435"></a>01435     }
<a name="l01436"></a>01436 <span class="comment"></span>
<a name="l01437"></a>01437 <span class="comment">  /**</span>
<a name="l01438"></a>01438 <span class="comment">   * @brief The results of a match or search operation.</span>
<a name="l01439"></a>01439 <span class="comment">   *</span>
<a name="l01440"></a>01440 <span class="comment">   * A collection of character sequences representing the result of a regular</span>
<a name="l01441"></a>01441 <span class="comment">   * expression match.  Storage for the collection is allocated and freed as</span>
<a name="l01442"></a>01442 <span class="comment">   * necessary by the member functions of class template match_results.</span>
<a name="l01443"></a>01443 <span class="comment">   *</span>
<a name="l01444"></a>01444 <span class="comment">   * This class satisfies the Sequence requirements, with the exception that</span>
<a name="l01445"></a>01445 <span class="comment">   * only the operations defined for a const-qualified Sequence are supported.</span>
<a name="l01446"></a>01446 <span class="comment">   *</span>
<a name="l01447"></a>01447 <span class="comment">   * The sub_match object stored at index 0 represents sub-expression 0, i.e.</span>
<a name="l01448"></a>01448 <span class="comment">   * the whole match. In this case the %sub_match member matched is always true.</span>
<a name="l01449"></a>01449 <span class="comment">   * The sub_match object stored at index n denotes what matched the marked</span>
<a name="l01450"></a>01450 <span class="comment">   * sub-expression n within the matched expression. If the sub-expression n</span>
<a name="l01451"></a>01451 <span class="comment">   * participated in a regular expression match then the %sub_match member</span>
<a name="l01452"></a>01452 <span class="comment">   * matched evaluates to true, and members first and second denote the range</span>
<a name="l01453"></a>01453 <span class="comment">   * of characters [first, second) which formed that match. Otherwise matched</span>
<a name="l01454"></a>01454 <span class="comment">   * is false, and members first and second point to the end of the sequence</span>
<a name="l01455"></a>01455 <span class="comment">   * that was searched.</span>
<a name="l01456"></a>01456 <span class="comment">   *</span>
<a name="l01457"></a>01457 <span class="comment">   * @nosubgrouping</span>
<a name="l01458"></a>01458 <span class="comment">   */</span>
<a name="l01459"></a>01459   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter,
<a name="l01460"></a>01460        <span class="keyword">typename</span> _Allocator = allocator&lt;sub_match&lt;_Bi_iter&gt; &gt; &gt;
<a name="l01461"></a><a class="code" href="a00261.html">01461</a>     <span class="keyword">class </span><a class="code" href="a00261.html" title="The results of a match or search operation.">match_results</a>
<a name="l01462"></a>01462     : <span class="keyword">private</span> std::<a class="code" href="a00739.html" title="A standard container which offers fixed time access to individual elements in any order...">vector</a>&lt;sub_match&lt;_Bi_iter&gt;, _Allocator&gt;
<a name="l01463"></a>01463     {
<a name="l01464"></a>01464     <span class="keyword">private</span>:
<a name="l01465"></a>01465       <span class="comment">/*</span>
<a name="l01466"></a>01466 <span class="comment">       * The vector base is empty if this does not represent a successful match.</span>
<a name="l01467"></a>01467 <span class="comment">       * Otherwise it contains n+3 elements where n is the number of marked</span>
<a name="l01468"></a>01468 <span class="comment">       * sub-expressions:</span>
<a name="l01469"></a>01469 <span class="comment">       * [0] entire match</span>
<a name="l01470"></a>01470 <span class="comment">       * [1] 1st marked subexpression</span>
<a name="l01471"></a>01471 <span class="comment">       * ...</span>
<a name="l01472"></a>01472 <span class="comment">       * [n] nth marked subexpression</span>
<a name="l01473"></a>01473 <span class="comment">       * [n+1] prefix</span>
<a name="l01474"></a>01474 <span class="comment">       * [n+2] suffix</span>
<a name="l01475"></a>01475 <span class="comment">       */</span>
<a name="l01476"></a>01476       <span class="keyword">typedef</span> <a class="code" href="a00739.html" title="A standard container which offers fixed time access to individual elements in any order...">std::vector&lt;sub_match&lt;_Bi_iter&gt;</a>, _Allocator&gt;    <a class="code" href="a00739.html">_Base_type</a>;
<a name="l01477"></a>01477 
<a name="l01478"></a>01478     <span class="keyword">public</span>:<span class="comment"></span>
<a name="l01479"></a>01479 <span class="comment">      /**</span>
<a name="l01480"></a>01480 <span class="comment">       * @name 10.? Public Types</span>
<a name="l01481"></a>01481 <span class="comment">       */</span><span class="comment"></span>
<a name="l01482"></a>01482 <span class="comment">      //@{</span>
<a name="l01483"></a>01483 <span class="comment"></span>      <span class="keyword">typedef</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>                             <a class="code" href="a00704.html">value_type</a>;
<a name="l01484"></a>01484       <span class="keyword">typedef</span> <span class="keyword">const</span> <a class="code" href="a00704.html">value_type</a>&amp;                               <a class="code" href="a00704.html">const_reference</a>;
<a name="l01485"></a>01485       <span class="keyword">typedef</span> <a class="code" href="a00704.html">const_reference</a>                                 <a class="code" href="a00704.html">reference</a>;
<a name="l01486"></a>01486       <span class="keyword">typedef</span> <span class="keyword">typename</span> _Base_type::const_iterator             const_iterator;
<a name="l01487"></a>01487       <span class="keyword">typedef</span> const_iterator                                  iterator;
<a name="l01488"></a>01488       <span class="keyword">typedef</span> <span class="keyword">typename</span> std::iterator_traits&lt;_Bi_iter&gt;::difference_type
<a name="l01489"></a>01489                                                               difference_type;
<a name="l01490"></a>01490       <span class="comment">/* TODO: needs allocator_traits */</span>
<a name="l01491"></a>01491       <span class="keyword">typedef</span> <span class="keyword">typename</span> _Allocator::size_type                  size_type;
<a name="l01492"></a>01492       <span class="keyword">typedef</span> _Allocator                                      allocator_type;
<a name="l01493"></a>01493       <span class="keyword">typedef</span> <span class="keyword">typename</span> std::iterator_traits&lt;_Bi_iter&gt;::value_type
<a name="l01494"></a>01494                                                               char_type;
<a name="l01495"></a>01495       <span class="keyword">typedef</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">std::basic_string&lt;char_type&gt;</a>                    <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">string_type</a>;<span class="comment"></span>
<a name="l01496"></a>01496 <span class="comment">      //@}</span>
<a name="l01497"></a>01497 <span class="comment"></span>  
<a name="l01498"></a>01498     <span class="keyword">public</span>:<span class="comment"></span>
<a name="l01499"></a>01499 <span class="comment">      /**</span>
<a name="l01500"></a>01500 <span class="comment">       * @name 28.10.1 Construction, Copying, and Destruction</span>
<a name="l01501"></a>01501 <span class="comment">       */</span><span class="comment"></span>
<a name="l01502"></a>01502 <span class="comment">      //@{</span>
<a name="l01503"></a>01503 <span class="comment"></span><span class="comment"></span>
<a name="l01504"></a>01504 <span class="comment">      /**</span>
<a name="l01505"></a>01505 <span class="comment">       * @brief Constructs a default %match_results container.</span>
<a name="l01506"></a>01506 <span class="comment">       * @post size() returns 0 and str() returns an empty string.</span>
<a name="l01507"></a>01507 <span class="comment">       */</span>
<a name="l01508"></a>01508       <span class="keyword">explicit</span>
<a name="l01509"></a><a class="code" href="a00261.html#a94015026c3cdc3c2889c2bf191a12d71">01509</a>       <a class="code" href="a00261.html#a94015026c3cdc3c2889c2bf191a12d71" title="Constructs a default match_results container.">match_results</a>(<span class="keyword">const</span> _Allocator&amp; __a = _Allocator())
<a name="l01510"></a>01510       : <a class="code" href="a00739.html">_Base_type</a>(__a)
<a name="l01511"></a>01511       { }
<a name="l01512"></a>01512 <span class="comment"></span>
<a name="l01513"></a>01513 <span class="comment">      /**</span>
<a name="l01514"></a>01514 <span class="comment">       * @brief Copy constructs a %match_results.</span>
<a name="l01515"></a>01515 <span class="comment">       */</span>
<a name="l01516"></a><a class="code" href="a00261.html#ad1a6fbc8f28a78735cf98903db98a5c1">01516</a>       <a class="code" href="a00261.html#a94015026c3cdc3c2889c2bf191a12d71" title="Constructs a default match_results container.">match_results</a>(<span class="keyword">const</span> <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results</a>&amp; __rhs)
<a name="l01517"></a>01517       : <a class="code" href="a00739.html">_Base_type</a>(__rhs)
<a name="l01518"></a>01518       { }
<a name="l01519"></a>01519 <span class="comment"></span>
<a name="l01520"></a>01520 <span class="comment">      /**</span>
<a name="l01521"></a>01521 <span class="comment">       * @brief Move constructs a %match_results.</span>
<a name="l01522"></a>01522 <span class="comment">       */</span>
<a name="l01523"></a><a class="code" href="a00261.html#a07265c11f19f13cd698e0a660c3b63df">01523</a>       <a class="code" href="a00261.html#a94015026c3cdc3c2889c2bf191a12d71" title="Constructs a default match_results container.">match_results</a>(<a class="code" href="a00261.html" title="The results of a match or search operation.">match_results</a>&amp;&amp; __rhs) noexcept
<a name="l01524"></a>01524       : <a class="code" href="a00739.html">_Base_type</a>(std::move(__rhs))
<a name="l01525"></a>01525       { }
<a name="l01526"></a>01526 <span class="comment"></span>
<a name="l01527"></a>01527 <span class="comment">      /**</span>
<a name="l01528"></a>01528 <span class="comment">       * @brief Assigns rhs to *this.</span>
<a name="l01529"></a>01529 <span class="comment">       */</span>
<a name="l01530"></a>01530       <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results</a>&amp;
<a name="l01531"></a><a class="code" href="a00261.html#ab28a0391ce3892739b7d3f481ff469ab">01531</a>       <a class="code" href="a00261.html#ab28a0391ce3892739b7d3f481ff469ab" title="Assigns rhs to *this.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results</a>&amp; __rhs)
<a name="l01532"></a>01532       {
<a name="l01533"></a>01533     <a class="code" href="a00261.html#a94015026c3cdc3c2889c2bf191a12d71" title="Constructs a default match_results container.">match_results</a>(__rhs).swap(*<span class="keyword">this</span>);
<a name="l01534"></a>01534     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l01535"></a>01535       }
<a name="l01536"></a>01536 <span class="comment"></span>
<a name="l01537"></a>01537 <span class="comment">      /**</span>
<a name="l01538"></a>01538 <span class="comment">       * @brief Move-assigns rhs to *this.</span>
<a name="l01539"></a>01539 <span class="comment">       */</span>
<a name="l01540"></a>01540       <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results</a>&amp;
<a name="l01541"></a><a class="code" href="a00261.html#afd35c4c2a756b6e828274eb2045fef38">01541</a>       <a class="code" href="a00261.html#ab28a0391ce3892739b7d3f481ff469ab" title="Assigns rhs to *this.">operator=</a>(<a class="code" href="a00261.html" title="The results of a match or search operation.">match_results</a>&amp;&amp; __rhs)
<a name="l01542"></a>01542       {
<a name="l01543"></a>01543     <a class="code" href="a00261.html#a94015026c3cdc3c2889c2bf191a12d71" title="Constructs a default match_results container.">match_results</a>(std::move(__rhs)).swap(*<span class="keyword">this</span>);
<a name="l01544"></a>01544     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l01545"></a>01545       }
<a name="l01546"></a>01546 <span class="comment"></span>
<a name="l01547"></a>01547 <span class="comment">      /**</span>
<a name="l01548"></a>01548 <span class="comment">       * @brief Destroys a %match_results object.</span>
<a name="l01549"></a>01549 <span class="comment">       */</span>
<a name="l01550"></a><a class="code" href="a00261.html#a221875899ff1cb0c84744e4984885ae1">01550</a>       <a class="code" href="a00261.html#a221875899ff1cb0c84744e4984885ae1" title="Destroys a match_results object.">~match_results</a>()
<a name="l01551"></a>01551       { }
<a name="l01552"></a>01552       <span class="comment"></span>
<a name="l01553"></a>01553 <span class="comment">      //@}</span>
<a name="l01554"></a>01554 <span class="comment"></span>
<a name="l01555"></a>01555       <span class="comment">// 28.10.2, state:</span><span class="comment"></span>
<a name="l01556"></a>01556 <span class="comment">      /**</span>
<a name="l01557"></a>01557 <span class="comment">       * @brief Indicates if the %match_results is ready.</span>
<a name="l01558"></a>01558 <span class="comment">       * @retval true   The object has a fully-established result state.</span>
<a name="l01559"></a>01559 <span class="comment">       * @retval false  The object is not ready.</span>
<a name="l01560"></a>01560 <span class="comment">       */</span>
<a name="l01561"></a><a class="code" href="a00261.html#ad3d280800092eb7d2ced773506187c23">01561</a>       <span class="keywordtype">bool</span> <a class="code" href="a00261.html#ad3d280800092eb7d2ced773506187c23" title="Indicates if the match_results is ready.">ready</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !<a class="code" href="a00739.html#a5c5f31793e938ca343a70bc74a3ffa10">_Base_type::empty</a>(); }
<a name="l01562"></a>01562 <span class="comment"></span>
<a name="l01563"></a>01563 <span class="comment">      /**</span>
<a name="l01564"></a>01564 <span class="comment">       * @name 28.10.2 Size</span>
<a name="l01565"></a>01565 <span class="comment">       */</span><span class="comment"></span>
<a name="l01566"></a>01566 <span class="comment">      //@{</span>
<a name="l01567"></a>01567 <span class="comment"></span><span class="comment"></span>
<a name="l01568"></a>01568 <span class="comment">      /**</span>
<a name="l01569"></a>01569 <span class="comment">       * @brief Gets the number of matches and submatches.</span>
<a name="l01570"></a>01570 <span class="comment">       *</span>
<a name="l01571"></a>01571 <span class="comment">       * The number of matches for a given regular expression will be either 0</span>
<a name="l01572"></a>01572 <span class="comment">       * if there was no match or mark_count() + 1 if a match was successful.</span>
<a name="l01573"></a>01573 <span class="comment">       * Some matches may be empty.</span>
<a name="l01574"></a>01574 <span class="comment">       *</span>
<a name="l01575"></a>01575 <span class="comment">       * @returns the number of matches found.</span>
<a name="l01576"></a>01576 <span class="comment">       */</span>
<a name="l01577"></a>01577       size_type
<a name="l01578"></a><a class="code" href="a00261.html#a045ce3d38bdd30a73d729098bfcaf8f0">01578</a>       <a class="code" href="a00261.html#a045ce3d38bdd30a73d729098bfcaf8f0" title="Gets the number of matches and submatches.">size</a>()<span class="keyword"> const</span>
<a name="l01579"></a>01579 <span class="keyword">      </span>{
<a name="l01580"></a>01580         size_type __size = <a class="code" href="a00739.html#a49e9afae414f8d8e3a2e1221c3a050c6">_Base_type::size</a>();
<a name="l01581"></a>01581         <span class="keywordflow">return</span> (__size &amp;&amp; _Base_type::operator[](0).matched) ? __size - 2 : 0;
<a name="l01582"></a>01582       }
<a name="l01583"></a>01583       
<a name="l01584"></a>01584       size_type
<a name="l01585"></a><a class="code" href="a00261.html#a92bea784d857a88370b1658b427038b7">01585</a>       <a class="code" href="a00261.html#a92bea784d857a88370b1658b427038b7" title="Gets the number of matches and submatches.">max_size</a>()<span class="keyword"> const</span>
<a name="l01586"></a>01586 <span class="keyword">      </span>{ <span class="keywordflow">return</span> <a class="code" href="a00739.html#a68fc9ad8180aacdca3a3cf15b8e1ddb9">_Base_type::max_size</a>(); }
<a name="l01587"></a>01587 <span class="comment"></span>
<a name="l01588"></a>01588 <span class="comment">      /**</span>
<a name="l01589"></a>01589 <span class="comment">       * @brief Indicates if the %match_results contains no results.</span>
<a name="l01590"></a>01590 <span class="comment">       * @retval true The %match_results object is empty.</span>
<a name="l01591"></a>01591 <span class="comment">       * @retval false The %match_results object is not empty.</span>
<a name="l01592"></a>01592 <span class="comment">       */</span>
<a name="l01593"></a>01593       <span class="keywordtype">bool</span>
<a name="l01594"></a><a class="code" href="a00261.html#a01f256463c4910fbb4eb6a60283b54d7">01594</a>       <a class="code" href="a00261.html#a01f256463c4910fbb4eb6a60283b54d7" title="Indicates if the match_results contains no results.">empty</a>()<span class="keyword"> const</span>
<a name="l01595"></a>01595 <span class="keyword">      </span>{ <span class="keywordflow">return</span> <a class="code" href="a00261.html#a045ce3d38bdd30a73d729098bfcaf8f0" title="Gets the number of matches and submatches.">size</a>() == 0; }
<a name="l01596"></a>01596       <span class="comment"></span>
<a name="l01597"></a>01597 <span class="comment">      //@}</span>
<a name="l01598"></a>01598 <span class="comment"></span><span class="comment"></span>
<a name="l01599"></a>01599 <span class="comment">      /**</span>
<a name="l01600"></a>01600 <span class="comment">       * @name 10.3 Element Access</span>
<a name="l01601"></a>01601 <span class="comment">       */</span><span class="comment"></span>
<a name="l01602"></a>01602 <span class="comment">      //@{</span>
<a name="l01603"></a>01603 <span class="comment"></span><span class="comment"></span>
<a name="l01604"></a>01604 <span class="comment">      /**</span>
<a name="l01605"></a>01605 <span class="comment">       * @brief Gets the length of the indicated submatch.</span>
<a name="l01606"></a>01606 <span class="comment">       * @param sub indicates the submatch.</span>
<a name="l01607"></a>01607 <span class="comment">       * @pre   ready() == true</span>
<a name="l01608"></a>01608 <span class="comment">       *</span>
<a name="l01609"></a>01609 <span class="comment">       * This function returns the length of the indicated submatch, or the</span>
<a name="l01610"></a>01610 <span class="comment">       * length of the entire match if @p sub is zero (the default).</span>
<a name="l01611"></a>01611 <span class="comment">       */</span>
<a name="l01612"></a>01612       difference_type
<a name="l01613"></a><a class="code" href="a00261.html#a8dc681ff5e575371f6122582b4dfb2b1">01613</a>       <a class="code" href="a00261.html#a8dc681ff5e575371f6122582b4dfb2b1" title="Gets the length of the indicated submatch.">length</a>(size_type __sub = 0)<span class="keyword"> const</span>
<a name="l01614"></a>01614 <span class="keyword">      </span>{ <span class="keywordflow">return</span> (*<span class="keyword">this</span>)[__sub].length(); }
<a name="l01615"></a>01615 <span class="comment"></span>
<a name="l01616"></a>01616 <span class="comment">      /**</span>
<a name="l01617"></a>01617 <span class="comment">       * @brief Gets the offset of the beginning of the indicated submatch.</span>
<a name="l01618"></a>01618 <span class="comment">       * @param sub indicates the submatch.</span>
<a name="l01619"></a>01619 <span class="comment">       * @pre   ready() == true</span>
<a name="l01620"></a>01620 <span class="comment">       *</span>
<a name="l01621"></a>01621 <span class="comment">       * This function returns the offset from the beginning of the target</span>
<a name="l01622"></a>01622 <span class="comment">       * sequence to the beginning of the submatch, unless the value of @p sub</span>
<a name="l01623"></a>01623 <span class="comment">       * is zero (the default), in which case this function returns the offset</span>
<a name="l01624"></a>01624 <span class="comment">       * from the beginning of the target sequence to the beginning of the</span>
<a name="l01625"></a>01625 <span class="comment">       * match.</span>
<a name="l01626"></a>01626 <span class="comment">       *</span>
<a name="l01627"></a>01627 <span class="comment">       * Returns -1 if @p sub is out of range.</span>
<a name="l01628"></a>01628 <span class="comment">       */</span>
<a name="l01629"></a>01629       difference_type
<a name="l01630"></a><a class="code" href="a00261.html#a16cecfbe17b6c01de3cdeadf1be04d8e">01630</a>       <a class="code" href="a00261.html#a16cecfbe17b6c01de3cdeadf1be04d8e" title="Gets the offset of the beginning of the indicated submatch.">position</a>(size_type __sub = 0)<span class="keyword"> const</span>
<a name="l01631"></a>01631 <span class="keyword">      </span>{
<a name="l01632"></a>01632     <span class="keywordflow">return</span> __sub &lt; <a class="code" href="a00261.html#a045ce3d38bdd30a73d729098bfcaf8f0" title="Gets the number of matches and submatches.">size</a>() ? <a class="code" href="a01137.html#ae528703a7890e085ad7aecd06bf9aec9" title="A generalization of pointer arithmetic.">std::distance</a>(this-&gt;<a class="code" href="a00261.html#aa32a2968ec9280374062fb1504d9bddb" title="Gets a sub_match representing the match prefix.">prefix</a>().first,
<a name="l01633"></a>01633                           (*<span class="keyword">this</span>)[__sub].first) : -1;
<a name="l01634"></a>01634       }
<a name="l01635"></a>01635 <span class="comment"></span>
<a name="l01636"></a>01636 <span class="comment">      /**</span>
<a name="l01637"></a>01637 <span class="comment">       * @brief Gets the match or submatch converted to a string type.</span>
<a name="l01638"></a>01638 <span class="comment">       * @param sub indicates the submatch.</span>
<a name="l01639"></a>01639 <span class="comment">       * @pre   ready() == true</span>
<a name="l01640"></a>01640 <span class="comment">       *</span>
<a name="l01641"></a>01641 <span class="comment">       * This function gets the submatch (or match, if @p sub is zero) extracted</span>
<a name="l01642"></a>01642 <span class="comment">       * from the target range and converted to the associated string type.</span>
<a name="l01643"></a>01643 <span class="comment">       */</span>
<a name="l01644"></a>01644       string_type
<a name="l01645"></a><a class="code" href="a00261.html#ae52afec73cfc470d639d3cdb840199bd">01645</a>       <a class="code" href="a00261.html#ae52afec73cfc470d639d3cdb840199bd" title="Gets the match or submatch converted to a string type.">str</a>(size_type __sub = 0)<span class="keyword"> const</span>
<a name="l01646"></a>01646 <span class="keyword">      </span>{ <span class="keywordflow">return</span> (*<span class="keyword">this</span>)[__sub].str(); }
<a name="l01647"></a>01647       <span class="comment"></span>
<a name="l01648"></a>01648 <span class="comment">      /**</span>
<a name="l01649"></a>01649 <span class="comment">       * @brief Gets a %sub_match reference for the match or submatch.</span>
<a name="l01650"></a>01650 <span class="comment">       * @param sub indicates the submatch.</span>
<a name="l01651"></a>01651 <span class="comment">       * @pre   ready() == true</span>
<a name="l01652"></a>01652 <span class="comment">       *</span>
<a name="l01653"></a>01653 <span class="comment">       * This function gets a reference to the indicated submatch, or the entire</span>
<a name="l01654"></a>01654 <span class="comment">       * match if @p sub is zero.</span>
<a name="l01655"></a>01655 <span class="comment">       *</span>
<a name="l01656"></a>01656 <span class="comment">       * If @p sub &gt;= size() then this function returns a %sub_match with a</span>
<a name="l01657"></a>01657 <span class="comment">       * special value indicating no submatch.</span>
<a name="l01658"></a>01658 <span class="comment">       */</span>
<a name="l01659"></a>01659       const_reference
<a name="l01660"></a><a class="code" href="a00261.html#a42c31209217e8d89893363f1bbaf3100">01660</a>       <a class="code" href="a00261.html#a42c31209217e8d89893363f1bbaf3100" title="Gets a sub_match reference for the match or submatch.">operator[]</a>(size_type __sub)<span class="keyword"> const</span>
<a name="l01661"></a>01661 <span class="keyword">      </span>{ 
<a name="l01662"></a>01662         _GLIBCXX_DEBUG_ASSERT( <a class="code" href="a00261.html#ad3d280800092eb7d2ced773506187c23" title="Indicates if the match_results is ready.">ready</a>() );
<a name="l01663"></a>01663         <span class="keywordflow">return</span> __sub &lt; <a class="code" href="a00261.html#a045ce3d38bdd30a73d729098bfcaf8f0" title="Gets the number of matches and submatches.">size</a>()
<a name="l01664"></a>01664            ?  <a class="code" href="a00739.html#a475f606b188e2096932501e97d20ec80" title="Subscript access to the data contained in the vector.">_Base_type::operator[]</a>(__sub)
<a name="l01665"></a>01665            : __unmatched_sub&lt;_Bi_iter&gt;();
<a name="l01666"></a>01666       }
<a name="l01667"></a>01667 <span class="comment"></span>
<a name="l01668"></a>01668 <span class="comment">      /**</span>
<a name="l01669"></a>01669 <span class="comment">       * @brief Gets a %sub_match representing the match prefix.</span>
<a name="l01670"></a>01670 <span class="comment">       * @pre   ready() == true</span>
<a name="l01671"></a>01671 <span class="comment">       *</span>
<a name="l01672"></a>01672 <span class="comment">       * This function gets a reference to a %sub_match object representing the</span>
<a name="l01673"></a>01673 <span class="comment">       * part of the target range between the start of the target range and the</span>
<a name="l01674"></a>01674 <span class="comment">       * start of the match.</span>
<a name="l01675"></a>01675 <span class="comment">       */</span>
<a name="l01676"></a>01676       const_reference
<a name="l01677"></a><a class="code" href="a00261.html#aa32a2968ec9280374062fb1504d9bddb">01677</a>       <a class="code" href="a00261.html#aa32a2968ec9280374062fb1504d9bddb" title="Gets a sub_match representing the match prefix.">prefix</a>()<span class="keyword"> const</span>
<a name="l01678"></a>01678 <span class="keyword">      </span>{
<a name="l01679"></a>01679         _GLIBCXX_DEBUG_ASSERT( <a class="code" href="a00261.html#ad3d280800092eb7d2ced773506187c23" title="Indicates if the match_results is ready.">ready</a>() );
<a name="l01680"></a>01680         <span class="keywordflow">return</span> !<a class="code" href="a00261.html#a01f256463c4910fbb4eb6a60283b54d7" title="Indicates if the match_results contains no results.">empty</a>()
<a name="l01681"></a>01681                ? <a class="code" href="a00739.html#a475f606b188e2096932501e97d20ec80" title="Subscript access to the data contained in the vector.">_Base_type::operator[]</a>(<a class="code" href="a00739.html#a49e9afae414f8d8e3a2e1221c3a050c6">_Base_type::size</a>() - 2)
<a name="l01682"></a>01682            : __unmatched_sub&lt;_Bi_iter&gt;();
<a name="l01683"></a>01683       }
<a name="l01684"></a>01684 <span class="comment"></span>
<a name="l01685"></a>01685 <span class="comment">      /**</span>
<a name="l01686"></a>01686 <span class="comment">       * @brief Gets a %sub_match representing the match suffix.</span>
<a name="l01687"></a>01687 <span class="comment">       * @pre   ready() == true</span>
<a name="l01688"></a>01688 <span class="comment">       *</span>
<a name="l01689"></a>01689 <span class="comment">       * This function gets a reference to a %sub_match object representing the</span>
<a name="l01690"></a>01690 <span class="comment">       * part of the target range between the end of the match and the end of</span>
<a name="l01691"></a>01691 <span class="comment">       * the target range.</span>
<a name="l01692"></a>01692 <span class="comment">       */</span>
<a name="l01693"></a>01693       const_reference
<a name="l01694"></a><a class="code" href="a00261.html#a4740632c6f1bc68d71dda6d9ca05597b">01694</a>       <a class="code" href="a00261.html#a4740632c6f1bc68d71dda6d9ca05597b" title="Gets a sub_match representing the match suffix.">suffix</a>()<span class="keyword"> const</span>
<a name="l01695"></a>01695 <span class="keyword">      </span>{
<a name="l01696"></a>01696     _GLIBCXX_DEBUG_ASSERT( <a class="code" href="a00261.html#ad3d280800092eb7d2ced773506187c23" title="Indicates if the match_results is ready.">ready</a>() );
<a name="l01697"></a>01697     <span class="keywordflow">return</span> !<a class="code" href="a00261.html#a01f256463c4910fbb4eb6a60283b54d7" title="Indicates if the match_results contains no results.">empty</a>()
<a name="l01698"></a>01698            ? <a class="code" href="a00739.html#a475f606b188e2096932501e97d20ec80" title="Subscript access to the data contained in the vector.">_Base_type::operator[]</a>(<a class="code" href="a00739.html#a49e9afae414f8d8e3a2e1221c3a050c6">_Base_type::size</a>() - 1)
<a name="l01699"></a>01699            : __unmatched_sub&lt;_Bi_iter&gt;();
<a name="l01700"></a>01700       }
<a name="l01701"></a>01701 <span class="comment"></span>
<a name="l01702"></a>01702 <span class="comment">      /**</span>
<a name="l01703"></a>01703 <span class="comment">       * @brief Gets an iterator to the start of the %sub_match collection.</span>
<a name="l01704"></a>01704 <span class="comment">       */</span>
<a name="l01705"></a>01705       const_iterator
<a name="l01706"></a><a class="code" href="a00261.html#a0af59bb1979baeba54cbc5771d1db2c4">01706</a>       <a class="code" href="a00261.html#a0af59bb1979baeba54cbc5771d1db2c4" title="Gets an iterator to the start of the sub_match collection.">begin</a>()<span class="keyword"> const</span>
<a name="l01707"></a>01707 <span class="keyword">      </span>{ <span class="keywordflow">return</span> <a class="code" href="a00739.html#a52e9b3c0d3157f9db067259fc2591085">_Base_type::begin</a>(); }
<a name="l01708"></a>01708       <span class="comment"></span>
<a name="l01709"></a>01709 <span class="comment">      /**</span>
<a name="l01710"></a>01710 <span class="comment">       * @brief Gets an iterator to the start of the %sub_match collection.</span>
<a name="l01711"></a>01711 <span class="comment">       */</span>
<a name="l01712"></a>01712       const_iterator
<a name="l01713"></a><a class="code" href="a00261.html#ae83a3d13cac80f8f361dda783bd47ed3">01713</a>       <a class="code" href="a00261.html#ae83a3d13cac80f8f361dda783bd47ed3" title="Gets an iterator to the start of the sub_match collection.">cbegin</a>()<span class="keyword"> const</span>
<a name="l01714"></a>01714 <span class="keyword">      </span>{ <span class="keywordflow">return</span> <a class="code" href="a00739.html#a117e6357d3ae22271fc1e2540bb6f6ae">_Base_type::cbegin</a>(); }
<a name="l01715"></a>01715 <span class="comment"></span>
<a name="l01716"></a>01716 <span class="comment">      /**</span>
<a name="l01717"></a>01717 <span class="comment">       * @brief Gets an iterator to one-past-the-end of the collection.</span>
<a name="l01718"></a>01718 <span class="comment">       */</span>
<a name="l01719"></a>01719       const_iterator
<a name="l01720"></a><a class="code" href="a00261.html#ad78390cbbb4075b714388c71ee501f96">01720</a>       <a class="code" href="a00261.html#ad78390cbbb4075b714388c71ee501f96" title="Gets an iterator to one-past-the-end of the collection.">end</a>()<span class="keyword"> const</span>
<a name="l01721"></a>01721 <span class="keyword">      </span>{ <span class="keywordflow">return</span> !<a class="code" href="a00261.html#a01f256463c4910fbb4eb6a60283b54d7" title="Indicates if the match_results contains no results.">empty</a>() ? <a class="code" href="a00739.html#a8c27a1d92949b353ac4503001c0d1066">_Base_type::end</a>() - 2 : <a class="code" href="a00739.html#a8c27a1d92949b353ac4503001c0d1066">_Base_type::end</a>(); }
<a name="l01722"></a>01722       <span class="comment"></span>
<a name="l01723"></a>01723 <span class="comment">      /**</span>
<a name="l01724"></a>01724 <span class="comment">       * @brief Gets an iterator to one-past-the-end of the collection.</span>
<a name="l01725"></a>01725 <span class="comment">       */</span>
<a name="l01726"></a>01726       const_iterator
<a name="l01727"></a><a class="code" href="a00261.html#ac713b9d86427bb02944867523ee7b70c">01727</a>       <a class="code" href="a00261.html#ac713b9d86427bb02944867523ee7b70c" title="Gets an iterator to one-past-the-end of the collection.">cend</a>()<span class="keyword"> const</span>
<a name="l01728"></a>01728 <span class="keyword">      </span>{ <span class="keywordflow">return</span> <a class="code" href="a00261.html#ad78390cbbb4075b714388c71ee501f96" title="Gets an iterator to one-past-the-end of the collection.">end</a>(); }
<a name="l01729"></a>01729 <span class="comment"></span>
<a name="l01730"></a>01730 <span class="comment">      //@}</span>
<a name="l01731"></a>01731 <span class="comment"></span><span class="comment"></span>
<a name="l01732"></a>01732 <span class="comment">      /**</span>
<a name="l01733"></a>01733 <span class="comment">       * @name 10.4 Formatting</span>
<a name="l01734"></a>01734 <span class="comment">       *</span>
<a name="l01735"></a>01735 <span class="comment">       * These functions perform formatted substitution of the matched</span>
<a name="l01736"></a>01736 <span class="comment">       * character sequences into their target.  The format specifiers and</span>
<a name="l01737"></a>01737 <span class="comment">       * escape sequences accepted by these functions are determined by</span>
<a name="l01738"></a>01738 <span class="comment">       * their @p flags parameter as documented above.</span>
<a name="l01739"></a>01739 <span class="comment">       */</span><span class="comment"></span>
<a name="l01740"></a>01740 <span class="comment">       //@{</span>
<a name="l01741"></a>01741 <span class="comment"></span><span class="comment"></span>
<a name="l01742"></a>01742 <span class="comment">      /**</span>
<a name="l01743"></a>01743 <span class="comment">       * @pre   ready() == true</span>
<a name="l01744"></a>01744 <span class="comment">       * @todo Implement this function.</span>
<a name="l01745"></a>01745 <span class="comment">       */</span>
<a name="l01746"></a>01746       <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Out_iter&gt;
<a name="l01747"></a>01747         _Out_iter
<a name="l01748"></a><a class="code" href="a00261.html#ae8391ee2e8582ead52621a1d30ff4478">01748</a>         <a class="code" href="a00261.html#ae8391ee2e8582ead52621a1d30ff4478">format</a>(_Out_iter __out, <span class="keyword">const</span> char_type* __fmt_first,
<a name="l01749"></a>01749            <span class="keyword">const</span> char_type* __fmt_last,
<a name="l01750"></a>01750            <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __flags
<a name="l01751"></a>01751            = <a class="code" href="a01151.html#acf3e89be394e8e8efb9dc007691a04d8">regex_constants::format_default</a>)<span class="keyword"> const</span>
<a name="l01752"></a>01752 <span class="keyword">        </span>{ <span class="keywordflow">return</span> __out; }
<a name="l01753"></a>01753 <span class="comment"></span>
<a name="l01754"></a>01754 <span class="comment">      /**</span>
<a name="l01755"></a>01755 <span class="comment">       * @pre   ready() == true</span>
<a name="l01756"></a>01756 <span class="comment">       */</span>
<a name="l01757"></a>01757       <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Out_iter, <span class="keyword">typename</span> _St, <span class="keyword">typename</span> _Sa&gt;
<a name="l01758"></a>01758         _Out_iter
<a name="l01759"></a><a class="code" href="a00261.html#a564957b7de66905f32c082348fbe71be">01759</a>         <a class="code" href="a00261.html#ae8391ee2e8582ead52621a1d30ff4478">format</a>(_Out_iter __out, <span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string&lt;char_type, _St, _Sa&gt;</a>&amp; __fmt,
<a name="l01760"></a>01760            <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __flags
<a name="l01761"></a>01761            = <a class="code" href="a01151.html#acf3e89be394e8e8efb9dc007691a04d8">regex_constants::format_default</a>)<span class="keyword"> const</span>
<a name="l01762"></a>01762 <span class="keyword">        </span>{
<a name="l01763"></a>01763           <span class="keywordflow">return</span> <a class="code" href="a00261.html#ae8391ee2e8582ead52621a1d30ff4478">format</a>(__out, __fmt.<a class="code" href="a00253.html#a41c3f549b90ac3127288fc278c259599" title="Return const pointer to contents.">data</a>(), __fmt.<a class="code" href="a00253.html#a41c3f549b90ac3127288fc278c259599" title="Return const pointer to contents.">data</a>() + __fmt.<a class="code" href="a00253.html#ac12b0940bdc4c97c6360e68455c7bd70" title="Returns the number of characters in the string, not including any null-termination.">size</a>(),
<a name="l01764"></a>01764                         __flags);
<a name="l01765"></a>01765         }
<a name="l01766"></a>01766 <span class="comment"></span>
<a name="l01767"></a>01767 <span class="comment">      /**</span>
<a name="l01768"></a>01768 <span class="comment">       * @pre   ready() == true</span>
<a name="l01769"></a>01769 <span class="comment">       */</span>
<a name="l01770"></a>01770       <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Out_iter, <span class="keyword">typename</span> _St, <span class="keyword">typename</span> _Sa&gt;
<a name="l01771"></a>01771         <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string&lt;char_type, _St, _Sa&gt;</a>
<a name="l01772"></a><a class="code" href="a00261.html#a7c5a1cc7222509922be947b12b810f6e">01772</a>         <a class="code" href="a00261.html#ae8391ee2e8582ead52621a1d30ff4478">format</a>(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string&lt;char_type, _St, _Sa&gt;</a>&amp; __fmt,
<a name="l01773"></a>01773            <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __flags
<a name="l01774"></a>01774            = <a class="code" href="a01151.html#acf3e89be394e8e8efb9dc007691a04d8">regex_constants::format_default</a>)<span class="keyword"> const</span>
<a name="l01775"></a>01775 <span class="keyword">        </span>{
<a name="l01776"></a>01776           <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string&lt;char_type, _St, _Sa&gt;</a> __result;
<a name="l01777"></a>01777           <a class="code" href="a00261.html#ae8391ee2e8582ead52621a1d30ff4478">format</a>(<a class="code" href="a01201.html#ga49be1b1c7bb0c8cc988d631f40be6145">std::back_inserter</a>(__result), __fmt, __flags);
<a name="l01778"></a>01778           <span class="keywordflow">return</span> __result;
<a name="l01779"></a>01779         }
<a name="l01780"></a>01780 <span class="comment"></span>
<a name="l01781"></a>01781 <span class="comment">      /**</span>
<a name="l01782"></a>01782 <span class="comment">       * @pre   ready() == true</span>
<a name="l01783"></a>01783 <span class="comment">       */</span>
<a name="l01784"></a>01784       string_type
<a name="l01785"></a><a class="code" href="a00261.html#af975619f27efdfcdb19a7477b37de82d">01785</a>       <a class="code" href="a00261.html#ae8391ee2e8582ead52621a1d30ff4478">format</a>(<span class="keyword">const</span> char_type* __fmt,
<a name="l01786"></a>01786          <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __flags
<a name="l01787"></a>01787          = <a class="code" href="a01151.html#acf3e89be394e8e8efb9dc007691a04d8">regex_constants::format_default</a>)<span class="keyword"> const</span>
<a name="l01788"></a>01788 <span class="keyword">      </span>{
<a name="l01789"></a>01789         <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">string_type</a> __result;
<a name="l01790"></a>01790         <a class="code" href="a00261.html#ae8391ee2e8582ead52621a1d30ff4478">format</a>(<a class="code" href="a01201.html#ga49be1b1c7bb0c8cc988d631f40be6145">std::back_inserter</a>(__result),
<a name="l01791"></a>01791                __fmt + <a class="code" href="a00415.html" title="Basis for explicit traits specializations.">char_traits&lt;char_type&gt;::length</a>(__fmt),
<a name="l01792"></a>01792                __flags);
<a name="l01793"></a>01793         <span class="keywordflow">return</span> __result;
<a name="l01794"></a>01794       }
<a name="l01795"></a>01795 <span class="comment"></span>
<a name="l01796"></a>01796 <span class="comment">      //@} </span>
<a name="l01797"></a>01797 <span class="comment"></span><span class="comment"></span>
<a name="l01798"></a>01798 <span class="comment">      /**</span>
<a name="l01799"></a>01799 <span class="comment">       * @name 10.5 Allocator</span>
<a name="l01800"></a>01800 <span class="comment">       */</span><span class="comment"></span>
<a name="l01801"></a>01801 <span class="comment">      //@{ </span>
<a name="l01802"></a>01802 <span class="comment"></span><span class="comment"></span>
<a name="l01803"></a>01803 <span class="comment">      /**</span>
<a name="l01804"></a>01804 <span class="comment">       * @brief Gets a copy of the allocator.</span>
<a name="l01805"></a>01805 <span class="comment">       */</span>
<a name="l01806"></a>01806       allocator_type
<a name="l01807"></a><a class="code" href="a00261.html#a9228d9db593d9d1d28418dfa831cebdf">01807</a>       <a class="code" href="a00261.html#a9228d9db593d9d1d28418dfa831cebdf" title="Gets a copy of the allocator.">get_allocator</a>()<span class="keyword"> const</span>
<a name="l01808"></a>01808 <span class="keyword">      </span>{ <span class="keywordflow">return</span> _Base_type::get_allocator(); }
<a name="l01809"></a>01809       <span class="comment"></span>
<a name="l01810"></a>01810 <span class="comment">      //@} </span>
<a name="l01811"></a>01811 <span class="comment"></span><span class="comment"></span>
<a name="l01812"></a>01812 <span class="comment">      /**</span>
<a name="l01813"></a>01813 <span class="comment">       * @name 10.6 Swap</span>
<a name="l01814"></a>01814 <span class="comment">       */</span><span class="comment"></span>
<a name="l01815"></a>01815 <span class="comment">       //@{ </span>
<a name="l01816"></a>01816 <span class="comment"></span><span class="comment"></span>
<a name="l01817"></a>01817 <span class="comment">      /**</span>
<a name="l01818"></a>01818 <span class="comment">       * @brief Swaps the contents of two match_results.</span>
<a name="l01819"></a>01819 <span class="comment">       */</span>
<a name="l01820"></a>01820       <span class="keywordtype">void</span>
<a name="l01821"></a><a class="code" href="a00261.html#a14e3f617863503fbfce4198682cb6fdc">01821</a>       <a class="code" href="a00261.html#a14e3f617863503fbfce4198682cb6fdc" title="Swaps the contents of two match_results.">swap</a>(<a class="code" href="a00261.html" title="The results of a match or search operation.">match_results</a>&amp; __that)
<a name="l01822"></a>01822       { <a class="code" href="a00739.html#aa01966bffe0a347ddc419558a01ce050" title="Swaps data with another vector.">_Base_type::swap</a>(__that); }<span class="comment"></span>
<a name="l01823"></a>01823 <span class="comment">      //@} </span>
<a name="l01824"></a>01824 <span class="comment"></span>      
<a name="l01825"></a>01825     <span class="keyword">private</span>:
<a name="l01826"></a>01826       <span class="keyword">friend</span> <span class="keyword">class </span>__regex::_SpecializedResults&lt;_Bi_iter, _Allocator&gt;;
<a name="l01827"></a>01827     };
<a name="l01828"></a>01828   
<a name="l01829"></a>01829   <span class="keyword">typedef</span> match_results&lt;const char*&gt;             cmatch;
<a name="l01830"></a>01830   <span class="keyword">typedef</span> match_results&lt;string::const_iterator&gt;  smatch;
<a name="l01831"></a>01831 <span class="preprocessor">#ifdef _GLIBCXX_USE_WCHAR_T</span>
<a name="l01832"></a>01832 <span class="preprocessor"></span>  <span class="keyword">typedef</span> match_results&lt;const wchar_t*&gt;          wcmatch;
<a name="l01833"></a>01833   <span class="keyword">typedef</span> match_results&lt;wstring::const_iterator&gt; wsmatch;
<a name="l01834"></a>01834 <span class="preprocessor">#endif</span>
<a name="l01835"></a>01835 <span class="preprocessor"></span>
<a name="l01836"></a>01836   <span class="comment">// match_results comparisons</span><span class="comment"></span>
<a name="l01837"></a>01837 <span class="comment">  /**</span>
<a name="l01838"></a>01838 <span class="comment">   * @brief Compares two match_results for equality.</span>
<a name="l01839"></a>01839 <span class="comment">   * @returns true if the two objects refer to the same match,</span>
<a name="l01840"></a>01840 <span class="comment">   * false otherwise.</span>
<a name="l01841"></a>01841 <span class="comment">   */</span>
<a name="l01842"></a>01842   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Allocator&gt;
<a name="l01843"></a>01843     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01844"></a><a class="code" href="a01192.html#gaa725698848d855a59539ee85bf858eae">01844</a>     operator==(<span class="keyword">const</span> <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results&lt;_Bi_iter, _Allocator&gt;</a>&amp; __m1,
<a name="l01845"></a>01845            <span class="keyword">const</span> <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results&lt;_Bi_iter, _Allocator&gt;</a>&amp; __m2)
<a name="l01846"></a>01846     {
<a name="l01847"></a>01847       <span class="keywordflow">if</span> (__m1.<a class="code" href="a00261.html#ad3d280800092eb7d2ced773506187c23" title="Indicates if the match_results is ready.">ready</a>() != __m2.<a class="code" href="a00261.html#ad3d280800092eb7d2ced773506187c23" title="Indicates if the match_results is ready.">ready</a>())
<a name="l01848"></a>01848         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l01849"></a>01849       <span class="keywordflow">if</span> (!__m1.<a class="code" href="a00261.html#ad3d280800092eb7d2ced773506187c23" title="Indicates if the match_results is ready.">ready</a>())  <span class="comment">// both are not ready</span>
<a name="l01850"></a>01850         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l01851"></a>01851       <span class="keywordflow">if</span> (__m1.<a class="code" href="a00261.html#a01f256463c4910fbb4eb6a60283b54d7" title="Indicates if the match_results contains no results.">empty</a>() != __m2.<a class="code" href="a00261.html#a01f256463c4910fbb4eb6a60283b54d7" title="Indicates if the match_results contains no results.">empty</a>())
<a name="l01852"></a>01852         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l01853"></a>01853       <span class="keywordflow">if</span> (__m1.<a class="code" href="a00261.html#a01f256463c4910fbb4eb6a60283b54d7" title="Indicates if the match_results contains no results.">empty</a>())   <span class="comment">// both are empty</span>
<a name="l01854"></a>01854         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l01855"></a>01855       <span class="keywordflow">return</span> __m1.<a class="code" href="a00261.html#aa32a2968ec9280374062fb1504d9bddb" title="Gets a sub_match representing the match prefix.">prefix</a>() == __m2.<a class="code" href="a00261.html#aa32a2968ec9280374062fb1504d9bddb" title="Gets a sub_match representing the match prefix.">prefix</a>()
<a name="l01856"></a>01856         &amp;&amp; __m1.<a class="code" href="a00261.html#a045ce3d38bdd30a73d729098bfcaf8f0" title="Gets the number of matches and submatches.">size</a>() == __m2.<a class="code" href="a00261.html#a045ce3d38bdd30a73d729098bfcaf8f0" title="Gets the number of matches and submatches.">size</a>()
<a name="l01857"></a>01857         &amp;&amp; <a class="code" href="a01183.html#gaa4d40abaab4237dda56baf51d8e001ee" title="Tests a range for element-wise equality.">std::equal</a>(__m1.<a class="code" href="a00261.html#a0af59bb1979baeba54cbc5771d1db2c4" title="Gets an iterator to the start of the sub_match collection.">begin</a>(), __m1.<a class="code" href="a00261.html#ad78390cbbb4075b714388c71ee501f96" title="Gets an iterator to one-past-the-end of the collection.">end</a>(), __m2.<a class="code" href="a00261.html#a0af59bb1979baeba54cbc5771d1db2c4" title="Gets an iterator to the start of the sub_match collection.">begin</a>())
<a name="l01858"></a>01858         &amp;&amp; __m1.<a class="code" href="a00261.html#a4740632c6f1bc68d71dda6d9ca05597b" title="Gets a sub_match representing the match suffix.">suffix</a>() == __m2.<a class="code" href="a00261.html#a4740632c6f1bc68d71dda6d9ca05597b" title="Gets a sub_match representing the match suffix.">suffix</a>();
<a name="l01859"></a>01859     }
<a name="l01860"></a>01860 <span class="comment"></span>
<a name="l01861"></a>01861 <span class="comment">  /**</span>
<a name="l01862"></a>01862 <span class="comment">   * @brief Compares two match_results for inequality.</span>
<a name="l01863"></a>01863 <span class="comment">   * @returns true if the two objects do not refer to the same match,</span>
<a name="l01864"></a>01864 <span class="comment">   * false otherwise.</span>
<a name="l01865"></a>01865 <span class="comment">   */</span>
<a name="l01866"></a>01866   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">class</span> _Allocator&gt;
<a name="l01867"></a>01867     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01868"></a><a class="code" href="a01192.html#ga73debdee3810c831fc3ee72ccdc8d9f8">01868</a>     operator!=(<span class="keyword">const</span> <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results&lt;_Bi_iter, _Allocator&gt;</a>&amp; __m1,
<a name="l01869"></a>01869            <span class="keyword">const</span> <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results&lt;_Bi_iter, _Allocator&gt;</a>&amp; __m2)
<a name="l01870"></a>01870     { <span class="keywordflow">return</span> !(__m1 == __m2); }
<a name="l01871"></a>01871 
<a name="l01872"></a>01872   <span class="comment">// [7.10.6] match_results swap</span><span class="comment"></span>
<a name="l01873"></a>01873 <span class="comment">  /**</span>
<a name="l01874"></a>01874 <span class="comment">   * @brief Swaps two match results.</span>
<a name="l01875"></a>01875 <span class="comment">   * @param lhs A match result.</span>
<a name="l01876"></a>01876 <span class="comment">   * @param rhs A match result.</span>
<a name="l01877"></a>01877 <span class="comment">   *</span>
<a name="l01878"></a>01878 <span class="comment">   * The contents of the two match_results objects are swapped.</span>
<a name="l01879"></a>01879 <span class="comment">   */</span>
<a name="l01880"></a>01880   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Allocator&gt;
<a name="l01881"></a>01881     <span class="keyword">inline</span> <span class="keywordtype">void</span>
<a name="l01882"></a><a class="code" href="a01192.html#gad16ae1fa12bba557f8d843dae4bef79a">01882</a>     swap(<a class="code" href="a00261.html" title="The results of a match or search operation.">match_results&lt;_Bi_iter, _Allocator&gt;</a>&amp; __lhs,
<a name="l01883"></a>01883      <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results&lt;_Bi_iter, _Allocator&gt;</a>&amp; __rhs)
<a name="l01884"></a>01884     { __lhs.<a class="code" href="a00261.html#a14e3f617863503fbfce4198682cb6fdc" title="Swaps the contents of two match_results.">swap</a>(__rhs); }
<a name="l01885"></a>01885 
<a name="l01886"></a>01886   <span class="comment">// [7.11.2] Function template regex_match</span><span class="comment"></span>
<a name="l01887"></a>01887 <span class="comment">  /**</span>
<a name="l01888"></a>01888 <span class="comment">   * @name Matching, Searching, and Replacing</span>
<a name="l01889"></a>01889 <span class="comment">   */</span><span class="comment"></span>
<a name="l01890"></a>01890 <span class="comment">  //@{</span>
<a name="l01891"></a>01891 <span class="comment"></span><span class="comment"></span>
<a name="l01892"></a>01892 <span class="comment">  /**</span>
<a name="l01893"></a>01893 <span class="comment">   * @brief Determines if there is a match between the regular expression @p e</span>
<a name="l01894"></a>01894 <span class="comment">   * and all of the character sequence [first, last).</span>
<a name="l01895"></a>01895 <span class="comment">   *</span>
<a name="l01896"></a>01896 <span class="comment">   * @param s     Start of the character sequence to match.</span>
<a name="l01897"></a>01897 <span class="comment">   * @param e     One-past-the-end of the character sequence to match.</span>
<a name="l01898"></a>01898 <span class="comment">   * @param m     The match results.</span>
<a name="l01899"></a>01899 <span class="comment">   * @param re    The regular expression.</span>
<a name="l01900"></a>01900 <span class="comment">   * @param flags Controls how the regular expression is matched.</span>
<a name="l01901"></a>01901 <span class="comment">   *</span>
<a name="l01902"></a>01902 <span class="comment">   * @retval true  A match exists.</span>
<a name="l01903"></a>01903 <span class="comment">   * @retval false Otherwise.</span>
<a name="l01904"></a>01904 <span class="comment">   *</span>
<a name="l01905"></a>01905 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l01906"></a>01906 <span class="comment">   *</span>
<a name="l01907"></a>01907 <span class="comment">   * @todo Implement this function.</span>
<a name="l01908"></a>01908 <span class="comment">   */</span>
<a name="l01909"></a>01909   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Allocator,
<a name="l01910"></a>01910        <span class="keyword">typename</span> _Ch_type, <span class="keyword">typename</span> _Rx_traits&gt;
<a name="l01911"></a>01911     <span class="keywordtype">bool</span>
<a name="l01912"></a><a class="code" href="a01192.html#gac7663dd83ed6e5592458c294eb4d534d">01912</a>     <a class="code" href="a01192.html#gac7663dd83ed6e5592458c294eb4d534d" title="Determines if there is a match between the regular expression e and all of the character sequence [fi...">regex_match</a>(_Bi_iter                                 __s,
<a name="l01913"></a>01913                 _Bi_iter                                 __e,
<a name="l01914"></a>01914                 <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results&lt;_Bi_iter, _Allocator&gt;</a>&amp;     __m,
<a name="l01915"></a>01915                 <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __re,
<a name="l01916"></a>01916                 <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a>         __flags
<a name="l01917"></a>01917                                = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l01918"></a>01918     {
<a name="l01919"></a>01919       <a class="code" href="a00265.html">__regex::_AutomatonPtr</a> __a = __re._M_get_automaton();
<a name="l01920"></a>01920       __regex::_Automaton::_SizeT __sz = __a-&gt;_M_sub_count();
<a name="l01921"></a>01921       __regex::_SpecializedCursor&lt;_Bi_iter&gt; __cs(__s, __e);
<a name="l01922"></a>01922       __regex::_SpecializedResults&lt;_Bi_iter, _Allocator&gt; __r(__sz, __cs, __m);
<a name="l01923"></a>01923       __regex::_Grep_matcher __matcher(__cs, __r, __a, __flags);
<a name="l01924"></a>01924       <span class="keywordflow">return</span> __m[0].matched;
<a name="l01925"></a>01925     }
<a name="l01926"></a>01926 <span class="comment"></span>
<a name="l01927"></a>01927 <span class="comment">  /**</span>
<a name="l01928"></a>01928 <span class="comment">   * @brief Indicates if there is a match between the regular expression @p e</span>
<a name="l01929"></a>01929 <span class="comment">   * and all of the character sequence [first, last).</span>
<a name="l01930"></a>01930 <span class="comment">   *</span>
<a name="l01931"></a>01931 <span class="comment">   * @param first Beginning of the character sequence to match.</span>
<a name="l01932"></a>01932 <span class="comment">   * @param last  One-past-the-end of the character sequence to match.</span>
<a name="l01933"></a>01933 <span class="comment">   * @param re    The regular expression.</span>
<a name="l01934"></a>01934 <span class="comment">   * @param flags Controls how the regular expression is matched.</span>
<a name="l01935"></a>01935 <span class="comment">   *</span>
<a name="l01936"></a>01936 <span class="comment">   * @retval true  A match exists.</span>
<a name="l01937"></a>01937 <span class="comment">   * @retval false Otherwise.</span>
<a name="l01938"></a>01938 <span class="comment">   *</span>
<a name="l01939"></a>01939 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l01940"></a>01940 <span class="comment">   */</span>
<a name="l01941"></a>01941   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Ch_type, <span class="keyword">typename</span> _Rx_traits&gt;
<a name="l01942"></a>01942     <span class="keywordtype">bool</span>
<a name="l01943"></a><a class="code" href="a01192.html#ga32dfe31ccfcfc848792d94d3b638f623">01943</a>     <a class="code" href="a01192.html#gac7663dd83ed6e5592458c294eb4d534d" title="Determines if there is a match between the regular expression e and all of the character sequence [fi...">regex_match</a>(_Bi_iter __first, _Bi_iter __last,
<a name="l01944"></a>01944         <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __re,
<a name="l01945"></a>01945         <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __flags
<a name="l01946"></a>01946         = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l01947"></a>01947     { 
<a name="l01948"></a>01948       <a class="code" href="a00261.html">match_results&lt;_Bi_iter&gt;</a> __what;
<a name="l01949"></a>01949       <span class="keywordflow">return</span> <a class="code" href="a01192.html#gac7663dd83ed6e5592458c294eb4d534d" title="Determines if there is a match between the regular expression e and all of the character sequence [fi...">regex_match</a>(__first, __last, __what, __re, __flags);
<a name="l01950"></a>01950     }
<a name="l01951"></a>01951 <span class="comment"></span>
<a name="l01952"></a>01952 <span class="comment">  /**</span>
<a name="l01953"></a>01953 <span class="comment">   * @brief Determines if there is a match between the regular expression @p e</span>
<a name="l01954"></a>01954 <span class="comment">   * and a C-style null-terminated string.</span>
<a name="l01955"></a>01955 <span class="comment">   *</span>
<a name="l01956"></a>01956 <span class="comment">   * @param s  The C-style null-terminated string to match.</span>
<a name="l01957"></a>01957 <span class="comment">   * @param m  The match results.</span>
<a name="l01958"></a>01958 <span class="comment">   * @param re The regular expression.</span>
<a name="l01959"></a>01959 <span class="comment">   * @param f  Controls how the regular expression is matched.</span>
<a name="l01960"></a>01960 <span class="comment">   *</span>
<a name="l01961"></a>01961 <span class="comment">   * @retval true  A match exists.</span>
<a name="l01962"></a>01962 <span class="comment">   * @retval false Otherwise.</span>
<a name="l01963"></a>01963 <span class="comment">   *</span>
<a name="l01964"></a>01964 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l01965"></a>01965 <span class="comment">   */</span>
<a name="l01966"></a>01966   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_type, <span class="keyword">typename</span> _Allocator, <span class="keyword">typename</span> _Rx_traits&gt;
<a name="l01967"></a>01967     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01968"></a><a class="code" href="a01192.html#gaa50e4058dd6ebf72322efddaf8fa491a">01968</a>     <a class="code" href="a01192.html#gac7663dd83ed6e5592458c294eb4d534d" title="Determines if there is a match between the regular expression e and all of the character sequence [fi...">regex_match</a>(<span class="keyword">const</span> _Ch_type* __s,
<a name="l01969"></a>01969         <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results&lt;const _Ch_type*, _Allocator&gt;</a>&amp; __m,
<a name="l01970"></a>01970         <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __re,
<a name="l01971"></a>01971         <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __f
<a name="l01972"></a>01972         = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l01973"></a>01973     { <span class="keywordflow">return</span> <a class="code" href="a01192.html#gac7663dd83ed6e5592458c294eb4d534d" title="Determines if there is a match between the regular expression e and all of the character sequence [fi...">regex_match</a>(__s, __s + _Rx_traits::length(__s), __m, __re, __f); }
<a name="l01974"></a>01974 <span class="comment"></span>
<a name="l01975"></a>01975 <span class="comment">  /**</span>
<a name="l01976"></a>01976 <span class="comment">   * @brief Determines if there is a match between the regular expression @p e</span>
<a name="l01977"></a>01977 <span class="comment">   * and a string.</span>
<a name="l01978"></a>01978 <span class="comment">   *</span>
<a name="l01979"></a>01979 <span class="comment">   * @param s     The string to match.</span>
<a name="l01980"></a>01980 <span class="comment">   * @param m     The match results.</span>
<a name="l01981"></a>01981 <span class="comment">   * @param re    The regular expression.</span>
<a name="l01982"></a>01982 <span class="comment">   * @param flags Controls how the regular expression is matched.</span>
<a name="l01983"></a>01983 <span class="comment">   *</span>
<a name="l01984"></a>01984 <span class="comment">   * @retval true  A match exists.</span>
<a name="l01985"></a>01985 <span class="comment">   * @retval false Otherwise.</span>
<a name="l01986"></a>01986 <span class="comment">   *</span>
<a name="l01987"></a>01987 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l01988"></a>01988 <span class="comment">   */</span>
<a name="l01989"></a>01989   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _Ch_alloc,
<a name="l01990"></a>01990        <span class="keyword">typename</span> _Allocator, <span class="keyword">typename</span> _Ch_type, <span class="keyword">typename</span> _Rx_traits&gt;
<a name="l01991"></a>01991     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l01992"></a><a class="code" href="a01192.html#gaeb2900b14480859cc5d33666a56ac57a">01992</a>     <a class="code" href="a01192.html#gac7663dd83ed6e5592458c294eb4d534d" title="Determines if there is a match between the regular expression e and all of the character sequence [fi...">regex_match</a>(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string&lt;_Ch_type, _Ch_traits, _Ch_alloc&gt;</a>&amp; __s,
<a name="l01993"></a>01993         <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results</a>&lt;<span class="keyword">typename</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;_Ch_type, 
<a name="l01994"></a>01994         _Ch_traits, _Ch_alloc&gt;::const_iterator, _Allocator&gt;&amp; __m,
<a name="l01995"></a>01995         <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __re,
<a name="l01996"></a>01996         <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __flags
<a name="l01997"></a>01997         = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l01998"></a>01998     { <span class="keywordflow">return</span> <a class="code" href="a01192.html#gac7663dd83ed6e5592458c294eb4d534d" title="Determines if there is a match between the regular expression e and all of the character sequence [fi...">regex_match</a>(__s.<a class="code" href="a00253.html#a92ac8cd12ed8dd292465c513b47b3a81">begin</a>(), __s.<a class="code" href="a00253.html#aa4a6c059c158877d2390196bbff5b480">end</a>(), __m, __re, __flags); }
<a name="l01999"></a>01999 <span class="comment"></span>
<a name="l02000"></a>02000 <span class="comment">  /**</span>
<a name="l02001"></a>02001 <span class="comment">   * @brief Indicates if there is a match between the regular expression @p e</span>
<a name="l02002"></a>02002 <span class="comment">   * and a C-style null-terminated string.</span>
<a name="l02003"></a>02003 <span class="comment">   *</span>
<a name="l02004"></a>02004 <span class="comment">   * @param s  The C-style null-terminated string to match.</span>
<a name="l02005"></a>02005 <span class="comment">   * @param re The regular expression.</span>
<a name="l02006"></a>02006 <span class="comment">   * @param f  Controls how the regular expression is matched.</span>
<a name="l02007"></a>02007 <span class="comment">   *</span>
<a name="l02008"></a>02008 <span class="comment">   * @retval true  A match exists.</span>
<a name="l02009"></a>02009 <span class="comment">   * @retval false Otherwise.</span>
<a name="l02010"></a>02010 <span class="comment">   *</span>
<a name="l02011"></a>02011 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l02012"></a>02012 <span class="comment">   */</span>
<a name="l02013"></a>02013   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_type, <span class="keyword">class</span> _Rx_traits&gt;
<a name="l02014"></a>02014     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l02015"></a><a class="code" href="a01192.html#ga7a59387fb86c75d6c59c29af2b87a1af">02015</a>     <a class="code" href="a01192.html#gac7663dd83ed6e5592458c294eb4d534d" title="Determines if there is a match between the regular expression e and all of the character sequence [fi...">regex_match</a>(<span class="keyword">const</span> _Ch_type* __s,
<a name="l02016"></a>02016         <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __re,
<a name="l02017"></a>02017         <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __f
<a name="l02018"></a>02018         = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l02019"></a>02019     { <span class="keywordflow">return</span> <a class="code" href="a01192.html#gac7663dd83ed6e5592458c294eb4d534d" title="Determines if there is a match between the regular expression e and all of the character sequence [fi...">regex_match</a>(__s, __s + _Rx_traits::length(__s), __re, __f); }
<a name="l02020"></a>02020 <span class="comment"></span>
<a name="l02021"></a>02021 <span class="comment">  /**</span>
<a name="l02022"></a>02022 <span class="comment">   * @brief Indicates if there is a match between the regular expression @p e</span>
<a name="l02023"></a>02023 <span class="comment">   * and a string.</span>
<a name="l02024"></a>02024 <span class="comment">   *</span>
<a name="l02025"></a>02025 <span class="comment">   * @param s     [IN] The string to match.</span>
<a name="l02026"></a>02026 <span class="comment">   * @param re    [IN] The regular expression.</span>
<a name="l02027"></a>02027 <span class="comment">   * @param flags [IN] Controls how the regular expression is matched.</span>
<a name="l02028"></a>02028 <span class="comment">   *</span>
<a name="l02029"></a>02029 <span class="comment">   * @retval true  A match exists.</span>
<a name="l02030"></a>02030 <span class="comment">   * @retval false Otherwise.</span>
<a name="l02031"></a>02031 <span class="comment">   *</span>
<a name="l02032"></a>02032 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l02033"></a>02033 <span class="comment">   */</span>
<a name="l02034"></a>02034   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _Str_allocator,
<a name="l02035"></a>02035        <span class="keyword">typename</span> _Ch_type, <span class="keyword">typename</span> _Rx_traits&gt;
<a name="l02036"></a>02036     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l02037"></a><a class="code" href="a01192.html#ga86dd304c711a6d1c018abf79e070986f">02037</a>     <a class="code" href="a01192.html#gac7663dd83ed6e5592458c294eb4d534d" title="Determines if there is a match between the regular expression e and all of the character sequence [fi...">regex_match</a>(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string&lt;_Ch_type, _Ch_traits, _Str_allocator&gt;</a>&amp; __s,
<a name="l02038"></a>02038         <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __re,
<a name="l02039"></a>02039         <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __flags
<a name="l02040"></a>02040         = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l02041"></a>02041     { <span class="keywordflow">return</span> <a class="code" href="a01192.html#gac7663dd83ed6e5592458c294eb4d534d" title="Determines if there is a match between the regular expression e and all of the character sequence [fi...">regex_match</a>(__s.<a class="code" href="a00253.html#a92ac8cd12ed8dd292465c513b47b3a81">begin</a>(), __s.<a class="code" href="a00253.html#aa4a6c059c158877d2390196bbff5b480">end</a>(), __re, __flags); }
<a name="l02042"></a>02042 
<a name="l02043"></a>02043   <span class="comment">// [7.11.3] Function template regex_search</span><span class="comment"></span>
<a name="l02044"></a>02044 <span class="comment">  /**</span>
<a name="l02045"></a>02045 <span class="comment">   * Searches for a regular expression within a range.</span>
<a name="l02046"></a>02046 <span class="comment">   * @param first [IN]  The start of the string to search.</span>
<a name="l02047"></a>02047 <span class="comment">   * @param last  [IN]  One-past-the-end of the string to search.</span>
<a name="l02048"></a>02048 <span class="comment">   * @param m     [OUT] The match results.</span>
<a name="l02049"></a>02049 <span class="comment">   * @param re    [IN]  The regular expression to search for.</span>
<a name="l02050"></a>02050 <span class="comment">   * @param flags [IN]  Search policy flags.</span>
<a name="l02051"></a>02051 <span class="comment">   * @retval true  A match was found within the string.</span>
<a name="l02052"></a>02052 <span class="comment">   * @retval false No match was found within the string, the content of %m is</span>
<a name="l02053"></a>02053 <span class="comment">   *               undefined.</span>
<a name="l02054"></a>02054 <span class="comment">   *</span>
<a name="l02055"></a>02055 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l02056"></a>02056 <span class="comment">   *</span>
<a name="l02057"></a>02057 <span class="comment">   * @todo Implement this function.</span>
<a name="l02058"></a>02058 <span class="comment">   */</span>
<a name="l02059"></a>02059   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Allocator,
<a name="l02060"></a>02060        <span class="keyword">typename</span> _Ch_type, <span class="keyword">typename</span> _Rx_traits&gt;
<a name="l02061"></a>02061     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l02062"></a><a class="code" href="a01192.html#ga013cc37b809cf987761016da273dd606">02062</a>     <a class="code" href="a01192.html#ga013cc37b809cf987761016da273dd606">regex_search</a>(_Bi_iter __first, _Bi_iter __last,
<a name="l02063"></a>02063          <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results&lt;_Bi_iter, _Allocator&gt;</a>&amp; __m,
<a name="l02064"></a>02064          <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __re,
<a name="l02065"></a>02065          <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __flags
<a name="l02066"></a>02066          = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l02067"></a>02067     { <span class="keywordflow">return</span> <span class="keyword">false</span>; }
<a name="l02068"></a>02068 <span class="comment"></span>
<a name="l02069"></a>02069 <span class="comment">  /**</span>
<a name="l02070"></a>02070 <span class="comment">   * Searches for a regular expression within a range.</span>
<a name="l02071"></a>02071 <span class="comment">   * @param first [IN]  The start of the string to search.</span>
<a name="l02072"></a>02072 <span class="comment">   * @param last  [IN]  One-past-the-end of the string to search.</span>
<a name="l02073"></a>02073 <span class="comment">   * @param re    [IN]  The regular expression to search for.</span>
<a name="l02074"></a>02074 <span class="comment">   * @param flags [IN]  Search policy flags.</span>
<a name="l02075"></a>02075 <span class="comment">   * @retval true  A match was found within the string.</span>
<a name="l02076"></a>02076 <span class="comment">   * @retval false No match was found within the string.</span>
<a name="l02077"></a>02077 <span class="comment">   * @doctodo</span>
<a name="l02078"></a>02078 <span class="comment">   *</span>
<a name="l02079"></a>02079 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l02080"></a>02080 <span class="comment">   */</span>
<a name="l02081"></a>02081   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter, <span class="keyword">typename</span> _Ch_type, <span class="keyword">typename</span> _Rx_traits&gt;
<a name="l02082"></a>02082     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l02083"></a><a class="code" href="a01192.html#ga28bb96ac10db57c742a773b43de0fa6e">02083</a>     <a class="code" href="a01192.html#ga013cc37b809cf987761016da273dd606">regex_search</a>(_Bi_iter __first, _Bi_iter __last,
<a name="l02084"></a>02084          <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __re,
<a name="l02085"></a>02085          <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __flags
<a name="l02086"></a>02086          = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l02087"></a>02087     {
<a name="l02088"></a>02088       <a class="code" href="a00261.html">match_results&lt;_Bi_iter&gt;</a> __what;
<a name="l02089"></a>02089       <span class="keywordflow">return</span> <a class="code" href="a01192.html#ga013cc37b809cf987761016da273dd606">regex_search</a>(__first, __last, __what, __re, __flags);
<a name="l02090"></a>02090     }
<a name="l02091"></a>02091 <span class="comment"></span>
<a name="l02092"></a>02092 <span class="comment">  /**</span>
<a name="l02093"></a>02093 <span class="comment">   * @brief Searches for a regular expression within a C-string.</span>
<a name="l02094"></a>02094 <span class="comment">   * @param s [IN]  A C-string to search for the regex.</span>
<a name="l02095"></a>02095 <span class="comment">   * @param m [OUT] The set of regex matches.</span>
<a name="l02096"></a>02096 <span class="comment">   * @param e [IN]  The regex to search for in @p s.</span>
<a name="l02097"></a>02097 <span class="comment">   * @param f [IN]  The search flags.</span>
<a name="l02098"></a>02098 <span class="comment">   * @retval true  A match was found within the string.</span>
<a name="l02099"></a>02099 <span class="comment">   * @retval false No match was found within the string, the content of %m is</span>
<a name="l02100"></a>02100 <span class="comment">   *               undefined.</span>
<a name="l02101"></a>02101 <span class="comment">   * @doctodo</span>
<a name="l02102"></a>02102 <span class="comment">   *</span>
<a name="l02103"></a>02103 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l02104"></a>02104 <span class="comment">   */</span>
<a name="l02105"></a>02105   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_type, <span class="keyword">class</span> _Allocator, <span class="keyword">class</span> _Rx_traits&gt;
<a name="l02106"></a>02106     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l02107"></a><a class="code" href="a01192.html#ga1d6583795286fc1f6703f525172f490d">02107</a>     <a class="code" href="a01192.html#ga013cc37b809cf987761016da273dd606">regex_search</a>(<span class="keyword">const</span> _Ch_type* __s,
<a name="l02108"></a>02108          <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results&lt;const _Ch_type*, _Allocator&gt;</a>&amp; __m,
<a name="l02109"></a>02109          <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __e,
<a name="l02110"></a>02110          <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __f
<a name="l02111"></a>02111          = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l02112"></a>02112     { <span class="keywordflow">return</span> <a class="code" href="a01192.html#ga013cc37b809cf987761016da273dd606">regex_search</a>(__s, __s + _Rx_traits::length(__s), __m, __e, __f); }
<a name="l02113"></a>02113 <span class="comment"></span>
<a name="l02114"></a>02114 <span class="comment">  /**</span>
<a name="l02115"></a>02115 <span class="comment">   * @brief Searches for a regular expression within a C-string.</span>
<a name="l02116"></a>02116 <span class="comment">   * @param s [IN]  The C-string to search.</span>
<a name="l02117"></a>02117 <span class="comment">   * @param e [IN]  The regular expression to search for.</span>
<a name="l02118"></a>02118 <span class="comment">   * @param f [IN]  Search policy flags.</span>
<a name="l02119"></a>02119 <span class="comment">   * @retval true  A match was found within the string.</span>
<a name="l02120"></a>02120 <span class="comment">   * @retval false No match was found within the string.</span>
<a name="l02121"></a>02121 <span class="comment">   * @doctodo</span>
<a name="l02122"></a>02122 <span class="comment">   *</span>
<a name="l02123"></a>02123 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l02124"></a>02124 <span class="comment">   */</span>
<a name="l02125"></a>02125   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_type, <span class="keyword">typename</span> _Rx_traits&gt;
<a name="l02126"></a>02126     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l02127"></a><a class="code" href="a01192.html#ga6d1664b2fb23914943f14f83f9cbe56a">02127</a>     <a class="code" href="a01192.html#ga013cc37b809cf987761016da273dd606">regex_search</a>(<span class="keyword">const</span> _Ch_type* __s,
<a name="l02128"></a>02128          <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __e,
<a name="l02129"></a>02129          <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __f
<a name="l02130"></a>02130          = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l02131"></a>02131     { <span class="keywordflow">return</span> <a class="code" href="a01192.html#ga013cc37b809cf987761016da273dd606">regex_search</a>(__s, __s + _Rx_traits::length(__s), __e, __f); }
<a name="l02132"></a>02132 <span class="comment"></span>
<a name="l02133"></a>02133 <span class="comment">  /**</span>
<a name="l02134"></a>02134 <span class="comment">   * @brief Searches for a regular expression within a string.</span>
<a name="l02135"></a>02135 <span class="comment">   * @param s     [IN]  The string to search.</span>
<a name="l02136"></a>02136 <span class="comment">   * @param e     [IN]  The regular expression to search for.</span>
<a name="l02137"></a>02137 <span class="comment">   * @param flags [IN]  Search policy flags.</span>
<a name="l02138"></a>02138 <span class="comment">   * @retval true  A match was found within the string.</span>
<a name="l02139"></a>02139 <span class="comment">   * @retval false No match was found within the string.</span>
<a name="l02140"></a>02140 <span class="comment">   * @doctodo</span>
<a name="l02141"></a>02141 <span class="comment">   *</span>
<a name="l02142"></a>02142 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l02143"></a>02143 <span class="comment">   */</span>
<a name="l02144"></a>02144   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _String_allocator,
<a name="l02145"></a>02145        <span class="keyword">typename</span> _Ch_type, <span class="keyword">typename</span> _Rx_traits&gt;
<a name="l02146"></a>02146     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l02147"></a><a class="code" href="a01192.html#gac3126b5cd64f4d2fafb5a5316c981036">02147</a>     <a class="code" href="a01192.html#ga013cc37b809cf987761016da273dd606">regex_search</a>(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;_Ch_type, _Ch_traits,
<a name="l02148"></a>02148          _String_allocator&gt;&amp; __s,
<a name="l02149"></a>02149          <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __e,
<a name="l02150"></a>02150          <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __flags
<a name="l02151"></a>02151          = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l02152"></a>02152     { <span class="keywordflow">return</span> <a class="code" href="a01192.html#ga013cc37b809cf987761016da273dd606">regex_search</a>(__s.begin(), __s.end(), __e, __flags); }
<a name="l02153"></a>02153 <span class="comment"></span>
<a name="l02154"></a>02154 <span class="comment">  /**</span>
<a name="l02155"></a>02155 <span class="comment">   * @brief Searches for a regular expression within a string.</span>
<a name="l02156"></a>02156 <span class="comment">   * @param s [IN]  A C++ string to search for the regex.</span>
<a name="l02157"></a>02157 <span class="comment">   * @param m [OUT] The set of regex matches.</span>
<a name="l02158"></a>02158 <span class="comment">   * @param e [IN]  The regex to search for in @p s.</span>
<a name="l02159"></a>02159 <span class="comment">   * @param f [IN]  The search flags.</span>
<a name="l02160"></a>02160 <span class="comment">   * @retval true  A match was found within the string.</span>
<a name="l02161"></a>02161 <span class="comment">   * @retval false No match was found within the string, the content of %m is</span>
<a name="l02162"></a>02162 <span class="comment">   *               undefined.</span>
<a name="l02163"></a>02163 <span class="comment">   *</span>
<a name="l02164"></a>02164 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l02165"></a>02165 <span class="comment">   */</span>
<a name="l02166"></a>02166   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Ch_traits, <span class="keyword">typename</span> _Ch_alloc,
<a name="l02167"></a>02167        <span class="keyword">typename</span> _Allocator, <span class="keyword">typename</span> _Ch_type,
<a name="l02168"></a>02168        <span class="keyword">typename</span> _Rx_traits&gt;
<a name="l02169"></a>02169     <span class="keyword">inline</span> <span class="keywordtype">bool</span>
<a name="l02170"></a><a class="code" href="a01192.html#gae6b39b41b9d9298b3e89580d6f5a9bfb">02170</a>     <a class="code" href="a01192.html#ga013cc37b809cf987761016da273dd606">regex_search</a>(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string&lt;_Ch_type, _Ch_traits, _Ch_alloc&gt;</a>&amp; __s,
<a name="l02171"></a>02171          <a class="code" href="a00261.html" title="The results of a match or search operation.">match_results</a>&lt;<span class="keyword">typename</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string</a>&lt;_Ch_type,
<a name="l02172"></a>02172          _Ch_traits, _Ch_alloc&gt;::const_iterator, _Allocator&gt;&amp; __m,
<a name="l02173"></a>02173          <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __e,
<a name="l02174"></a>02174          <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __f
<a name="l02175"></a>02175          = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l02176"></a>02176     { <span class="keywordflow">return</span> <a class="code" href="a01192.html#ga013cc37b809cf987761016da273dd606">regex_search</a>(__s.<a class="code" href="a00253.html#a92ac8cd12ed8dd292465c513b47b3a81">begin</a>(), __s.<a class="code" href="a00253.html#aa4a6c059c158877d2390196bbff5b480">end</a>(), __m, __e, __f); }
<a name="l02177"></a>02177 
<a name="l02178"></a>02178   <span class="comment">// std [28.11.4] Function template regex_replace</span><span class="comment"></span>
<a name="l02179"></a>02179 <span class="comment">  /**</span>
<a name="l02180"></a>02180 <span class="comment">   * @doctodo</span>
<a name="l02181"></a>02181 <span class="comment">   * @param out</span>
<a name="l02182"></a>02182 <span class="comment">   * @param first</span>
<a name="l02183"></a>02183 <span class="comment">   * @param last</span>
<a name="l02184"></a>02184 <span class="comment">   * @param e</span>
<a name="l02185"></a>02185 <span class="comment">   * @param fmt</span>
<a name="l02186"></a>02186 <span class="comment">   * @param flags</span>
<a name="l02187"></a>02187 <span class="comment">   *</span>
<a name="l02188"></a>02188 <span class="comment">   * @returns out</span>
<a name="l02189"></a>02189 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l02190"></a>02190 <span class="comment">   *</span>
<a name="l02191"></a>02191 <span class="comment">   * @todo Implement this function.</span>
<a name="l02192"></a>02192 <span class="comment">   */</span>
<a name="l02193"></a>02193   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Out_iter, <span class="keyword">typename</span> _Bi_iter,
<a name="l02194"></a>02194        <span class="keyword">typename</span> _Rx_traits, <span class="keyword">typename</span> _Ch_type&gt;
<a name="l02195"></a>02195     <span class="keyword">inline</span> _Out_iter
<a name="l02196"></a><a class="code" href="a01192.html#ga6b1823e7230fa8d847a8cb5c9e146a8d">02196</a>     <a class="code" href="a01192.html#ga6b1823e7230fa8d847a8cb5c9e146a8d">regex_replace</a>(_Out_iter __out, _Bi_iter __first, _Bi_iter __last,
<a name="l02197"></a>02197           <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __e,
<a name="l02198"></a>02198           <span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string&lt;_Ch_type&gt;</a>&amp; __fmt,
<a name="l02199"></a>02199           <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __flags
<a name="l02200"></a>02200           = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l02201"></a>02201     { <span class="keywordflow">return</span> __out; }
<a name="l02202"></a>02202 <span class="comment"></span>
<a name="l02203"></a>02203 <span class="comment">  /**</span>
<a name="l02204"></a>02204 <span class="comment">   * @doctodo</span>
<a name="l02205"></a>02205 <span class="comment">   * @param s</span>
<a name="l02206"></a>02206 <span class="comment">   * @param e</span>
<a name="l02207"></a>02207 <span class="comment">   * @param fmt</span>
<a name="l02208"></a>02208 <span class="comment">   * @param flags</span>
<a name="l02209"></a>02209 <span class="comment">   *</span>
<a name="l02210"></a>02210 <span class="comment">   * @returns a copy of string @p s with replacements.</span>
<a name="l02211"></a>02211 <span class="comment">   *</span>
<a name="l02212"></a>02212 <span class="comment">   * @throws an exception of type regex_error.</span>
<a name="l02213"></a>02213 <span class="comment">   */</span>
<a name="l02214"></a>02214   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Rx_traits, <span class="keyword">typename</span> _Ch_type&gt;
<a name="l02215"></a>02215     <span class="keyword">inline</span> basic_string&lt;_Ch_type&gt;
<a name="l02216"></a><a class="code" href="a01192.html#ga94b69cfc0d168a4218784746d15bda2a">02216</a>     <a class="code" href="a01192.html#ga6b1823e7230fa8d847a8cb5c9e146a8d">regex_replace</a>(<span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string&lt;_Ch_type&gt;</a>&amp; __s,
<a name="l02217"></a>02217           <span class="keyword">const</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>&amp; __e,
<a name="l02218"></a>02218           <span class="keyword">const</span> <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string&lt;_Ch_type&gt;</a>&amp; __fmt,
<a name="l02219"></a>02219           <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __flags
<a name="l02220"></a>02220           = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>)
<a name="l02221"></a>02221     {
<a name="l02222"></a>02222       <a class="code" href="a00253.html" title="Managing sequences of characters and character-like objects.">basic_string&lt;_Ch_type&gt;</a> __result;
<a name="l02223"></a>02223       <a class="code" href="a01192.html#ga6b1823e7230fa8d847a8cb5c9e146a8d">regex_replace</a>(<a class="code" href="a01201.html#ga49be1b1c7bb0c8cc988d631f40be6145">std::back_inserter</a>(__result),
<a name="l02224"></a>02224             __s.<a class="code" href="a00253.html#a92ac8cd12ed8dd292465c513b47b3a81">begin</a>(), __s.<a class="code" href="a00253.html#aa4a6c059c158877d2390196bbff5b480">end</a>(), __e, __fmt, __flags);
<a name="l02225"></a>02225       <span class="keywordflow">return</span> __result;
<a name="l02226"></a>02226     }
<a name="l02227"></a>02227 <span class="comment"></span>
<a name="l02228"></a>02228 <span class="comment">  //@}</span>
<a name="l02229"></a>02229 <span class="comment"></span>
<a name="l02230"></a>02230   <span class="comment">// std [28.12] Class template regex_iterator</span><span class="comment"></span>
<a name="l02231"></a>02231 <span class="comment">  /**</span>
<a name="l02232"></a>02232 <span class="comment">   * An iterator adaptor that will provide repeated calls of regex_search over </span>
<a name="l02233"></a>02233 <span class="comment">   * a range until no more matches remain.</span>
<a name="l02234"></a>02234 <span class="comment">   */</span>
<a name="l02235"></a>02235   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter,
<a name="l02236"></a>02236        <span class="keyword">typename</span> _Ch_type = <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type,
<a name="l02237"></a>02237        <span class="keyword">typename</span> _Rx_traits = regex_traits&lt;_Ch_type&gt; &gt;
<a name="l02238"></a><a class="code" href="a00683.html">02238</a>     <span class="keyword">class </span><a class="code" href="a00683.html">regex_iterator</a>
<a name="l02239"></a>02239     {
<a name="l02240"></a>02240     <span class="keyword">public</span>:
<a name="l02241"></a>02241       <span class="keyword">typedef</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a>  <a class="code" href="a00402.html">regex_type</a>;
<a name="l02242"></a>02242       <span class="keyword">typedef</span> <a class="code" href="a00261.html">match_results&lt;_Bi_iter&gt;</a>            <a class="code" href="a00261.html">value_type</a>;
<a name="l02243"></a>02243       <span class="keyword">typedef</span> std::ptrdiff_t                     difference_type;
<a name="l02244"></a>02244       <span class="keyword">typedef</span> <span class="keyword">const</span> <a class="code" href="a00261.html">value_type</a>*                  <a class="code" href="a00261.html">pointer</a>;
<a name="l02245"></a>02245       <span class="keyword">typedef</span> <span class="keyword">const</span> <a class="code" href="a00261.html">value_type</a>&amp;                  <a class="code" href="a00261.html">reference</a>;
<a name="l02246"></a>02246       <span class="keyword">typedef</span> <a class="code" href="a00474.html" title="Forward iterators support a superset of input iterator operations.">std::forward_iterator_tag</a>          <a class="code" href="a00474.html" title="Forward iterators support a superset of input iterator operations.">iterator_category</a>;
<a name="l02247"></a>02247 
<a name="l02248"></a>02248     <span class="keyword">public</span>:<span class="comment"></span>
<a name="l02249"></a>02249 <span class="comment">      /**</span>
<a name="l02250"></a>02250 <span class="comment">       * @brief Provides a singular iterator, useful for indicating</span>
<a name="l02251"></a>02251 <span class="comment">       * one-past-the-end of a range.</span>
<a name="l02252"></a>02252 <span class="comment">       * @todo Implement this function.</span>
<a name="l02253"></a>02253 <span class="comment">       * @doctodo</span>
<a name="l02254"></a>02254 <span class="comment">       */</span>
<a name="l02255"></a>02255       <a class="code" href="a00683.html#a250b3887f719eef6cf7d6890d358c3dd" title="Provides a singular iterator, useful for indicating one-past-the-end of a range.">regex_iterator</a>();
<a name="l02256"></a>02256       <span class="comment"></span>
<a name="l02257"></a>02257 <span class="comment">      /**</span>
<a name="l02258"></a>02258 <span class="comment">       * Constructs a %regex_iterator...</span>
<a name="l02259"></a>02259 <span class="comment">       * @param a  [IN] The start of a text range to search.</span>
<a name="l02260"></a>02260 <span class="comment">       * @param b  [IN] One-past-the-end of the text range to search.</span>
<a name="l02261"></a>02261 <span class="comment">       * @param re [IN] The regular expression to match.</span>
<a name="l02262"></a>02262 <span class="comment">       * @param m  [IN] Policy flags for match rules.</span>
<a name="l02263"></a>02263 <span class="comment">       * @todo Implement this function.</span>
<a name="l02264"></a>02264 <span class="comment">       * @doctodo</span>
<a name="l02265"></a>02265 <span class="comment">       */</span>
<a name="l02266"></a>02266       <a class="code" href="a00683.html#a250b3887f719eef6cf7d6890d358c3dd" title="Provides a singular iterator, useful for indicating one-past-the-end of a range.">regex_iterator</a>(_Bi_iter __a, _Bi_iter __b, <span class="keyword">const</span> <a class="code" href="a00402.html">regex_type</a>&amp; __re,
<a name="l02267"></a>02267              <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __m
<a name="l02268"></a>02268              = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>);
<a name="l02269"></a>02269 <span class="comment"></span>
<a name="l02270"></a>02270 <span class="comment">      /**</span>
<a name="l02271"></a>02271 <span class="comment">       * Copy constructs a %regex_iterator.</span>
<a name="l02272"></a>02272 <span class="comment">       * @todo Implement this function.</span>
<a name="l02273"></a>02273 <span class="comment">       * @doctodo</span>
<a name="l02274"></a>02274 <span class="comment">       */</span>
<a name="l02275"></a>02275       <a class="code" href="a00683.html#a250b3887f719eef6cf7d6890d358c3dd" title="Provides a singular iterator, useful for indicating one-past-the-end of a range.">regex_iterator</a>(<span class="keyword">const</span> <a class="code" href="a00683.html">regex_iterator</a>&amp; __rhs);
<a name="l02276"></a>02276       <span class="comment"></span>
<a name="l02277"></a>02277 <span class="comment">      /**</span>
<a name="l02278"></a>02278 <span class="comment">       * @todo Implement this function.</span>
<a name="l02279"></a>02279 <span class="comment">       * @doctodo</span>
<a name="l02280"></a>02280 <span class="comment">       */</span>
<a name="l02281"></a>02281       <a class="code" href="a00683.html">regex_iterator</a>&amp;
<a name="l02282"></a>02282       <a class="code" href="a00683.html#a387de5ce658a813bef5ff68cc2e2efc7">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00683.html">regex_iterator</a>&amp; __rhs);
<a name="l02283"></a>02283       <span class="comment"></span>
<a name="l02284"></a>02284 <span class="comment">      /**</span>
<a name="l02285"></a>02285 <span class="comment">       * @todo Implement this function.</span>
<a name="l02286"></a>02286 <span class="comment">       * @doctodo</span>
<a name="l02287"></a>02287 <span class="comment">       */</span>
<a name="l02288"></a>02288       <span class="keywordtype">bool</span>
<a name="l02289"></a>02289       <a class="code" href="a00683.html#a7b102bce619f4e86486e8a50e4b7de21">operator==</a>(<span class="keyword">const</span> <a class="code" href="a00683.html">regex_iterator</a>&amp; __rhs);
<a name="l02290"></a>02290       <span class="comment"></span>
<a name="l02291"></a>02291 <span class="comment">      /**</span>
<a name="l02292"></a>02292 <span class="comment">       * @todo Implement this function.</span>
<a name="l02293"></a>02293 <span class="comment">       * @doctodo</span>
<a name="l02294"></a>02294 <span class="comment">       */</span>
<a name="l02295"></a>02295       <span class="keywordtype">bool</span>
<a name="l02296"></a>02296       <a class="code" href="a00683.html#abe8c898fbc8b4c9ee3ef56f9b1ffcc26">operator!=</a>(<span class="keyword">const</span> <a class="code" href="a00683.html">regex_iterator</a>&amp; __rhs);
<a name="l02297"></a>02297       <span class="comment"></span>
<a name="l02298"></a>02298 <span class="comment">      /**</span>
<a name="l02299"></a>02299 <span class="comment">       * @todo Implement this function.</span>
<a name="l02300"></a>02300 <span class="comment">       * @doctodo</span>
<a name="l02301"></a>02301 <span class="comment">       */</span>
<a name="l02302"></a>02302       <span class="keyword">const</span> <a class="code" href="a00261.html">value_type</a>&amp;
<a name="l02303"></a>02303       <a class="code" href="a00683.html#a0468e15b4832731f816d2777f934ad90">operator*</a>();
<a name="l02304"></a>02304       <span class="comment"></span>
<a name="l02305"></a>02305 <span class="comment">      /**</span>
<a name="l02306"></a>02306 <span class="comment">       * @todo Implement this function.</span>
<a name="l02307"></a>02307 <span class="comment">       * @doctodo</span>
<a name="l02308"></a>02308 <span class="comment">       */</span>
<a name="l02309"></a>02309       <span class="keyword">const</span> <a class="code" href="a00261.html">value_type</a>*
<a name="l02310"></a>02310       <a class="code" href="a00683.html#aba0b531ab020a90519300aa32aa971bd">operator-&gt;</a>();
<a name="l02311"></a>02311       <span class="comment"></span>
<a name="l02312"></a>02312 <span class="comment">      /**</span>
<a name="l02313"></a>02313 <span class="comment">       * @todo Implement this function.</span>
<a name="l02314"></a>02314 <span class="comment">       * @doctodo</span>
<a name="l02315"></a>02315 <span class="comment">       */</span>
<a name="l02316"></a>02316       <a class="code" href="a00683.html">regex_iterator</a>&amp;
<a name="l02317"></a>02317       <a class="code" href="a00683.html#a08638d2ec9fbbe6fecd5d3b732747a6c">operator++</a>();
<a name="l02318"></a>02318       <span class="comment"></span>
<a name="l02319"></a>02319 <span class="comment">      /**</span>
<a name="l02320"></a>02320 <span class="comment">       * @todo Implement this function.</span>
<a name="l02321"></a>02321 <span class="comment">       * @doctodo</span>
<a name="l02322"></a>02322 <span class="comment">       */</span>
<a name="l02323"></a>02323       <a class="code" href="a00683.html">regex_iterator</a>
<a name="l02324"></a>02324       <a class="code" href="a00683.html#a08638d2ec9fbbe6fecd5d3b732747a6c">operator++</a>(<span class="keywordtype">int</span>);
<a name="l02325"></a>02325       
<a name="l02326"></a>02326     <span class="keyword">private</span>:
<a name="l02327"></a>02327       <span class="comment">// these members are shown for exposition only:</span>
<a name="l02328"></a>02328       _Bi_iter                         begin;
<a name="l02329"></a>02329       _Bi_iter                         end;
<a name="l02330"></a>02330       <span class="keyword">const</span> <a class="code" href="a00402.html">regex_type</a>*                pregex;
<a name="l02331"></a>02331       <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> flags;
<a name="l02332"></a>02332       <a class="code" href="a00261.html">match_results&lt;_Bi_iter&gt;</a>          match;
<a name="l02333"></a>02333     };
<a name="l02334"></a>02334   
<a name="l02335"></a>02335   <span class="keyword">typedef</span> <a class="code" href="a00683.html">regex_iterator&lt;const char*&gt;</a>             <a class="code" href="a00683.html">cregex_iterator</a>;
<a name="l02336"></a>02336   <span class="keyword">typedef</span> <a class="code" href="a00683.html">regex_iterator&lt;string::const_iterator&gt;</a>  <a class="code" href="a00683.html">sregex_iterator</a>;
<a name="l02337"></a>02337 <span class="preprocessor">#ifdef _GLIBCXX_USE_WCHAR_T</span>
<a name="l02338"></a>02338 <span class="preprocessor"></span>  <span class="keyword">typedef</span> <a class="code" href="a00683.html">regex_iterator&lt;const wchar_t*&gt;</a>          <a class="code" href="a00683.html">wcregex_iterator</a>;
<a name="l02339"></a>02339   <span class="keyword">typedef</span> <a class="code" href="a00683.html">regex_iterator&lt;wstring::const_iterator&gt;</a> <a class="code" href="a00683.html">wsregex_iterator</a>;
<a name="l02340"></a>02340 <span class="preprocessor">#endif</span>
<a name="l02341"></a>02341 <span class="preprocessor"></span>
<a name="l02342"></a>02342   <span class="comment">// [7.12.2] Class template regex_token_iterator</span><span class="comment"></span>
<a name="l02343"></a>02343 <span class="comment">  /**</span>
<a name="l02344"></a>02344 <span class="comment">   * Iterates over submatches in a range (or @a splits a text string).</span>
<a name="l02345"></a>02345 <span class="comment">   *</span>
<a name="l02346"></a>02346 <span class="comment">   * The purpose of this iterator is to enumerate all, or all specified,</span>
<a name="l02347"></a>02347 <span class="comment">   * matches of a regular expression within a text range.  The dereferenced</span>
<a name="l02348"></a>02348 <span class="comment">   * value of an iterator of this class is a std::sub_match object.</span>
<a name="l02349"></a>02349 <span class="comment">   */</span>
<a name="l02350"></a>02350   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Bi_iter,
<a name="l02351"></a>02351        <span class="keyword">typename</span> _Ch_type = <span class="keyword">typename</span> iterator_traits&lt;_Bi_iter&gt;::value_type,
<a name="l02352"></a>02352        <span class="keyword">typename</span> _Rx_traits = <a class="code" href="a00685.html" title="Describes aspects of a regular expression.">regex_traits&lt;_Ch_type&gt;</a> &gt;
<a name="l02353"></a><a class="code" href="a00684.html">02353</a>     <span class="keyword">class </span><a class="code" href="a00684.html">regex_token_iterator</a>
<a name="l02354"></a>02354     {
<a name="l02355"></a>02355     <span class="keyword">public</span>:
<a name="l02356"></a>02356       <span class="keyword">typedef</span> <a class="code" href="a00402.html">basic_regex&lt;_Ch_type, _Rx_traits&gt;</a> <a class="code" href="a00402.html">regex_type</a>;
<a name="l02357"></a>02357       <span class="keyword">typedef</span> <a class="code" href="a00704.html">sub_match&lt;_Bi_iter&gt;</a>               <a class="code" href="a00704.html">value_type</a>;
<a name="l02358"></a>02358       <span class="keyword">typedef</span> std::ptrdiff_t                    difference_type;
<a name="l02359"></a>02359       <span class="keyword">typedef</span> <span class="keyword">const</span> <a class="code" href="a00704.html">value_type</a>*                 <a class="code" href="a00704.html">pointer</a>;
<a name="l02360"></a>02360       <span class="keyword">typedef</span> <span class="keyword">const</span> <a class="code" href="a00704.html">value_type</a>&amp;                 <a class="code" href="a00704.html">reference</a>;
<a name="l02361"></a>02361       <span class="keyword">typedef</span> <a class="code" href="a00474.html" title="Forward iterators support a superset of input iterator operations.">std::forward_iterator_tag</a>         <a class="code" href="a00474.html" title="Forward iterators support a superset of input iterator operations.">iterator_category</a>;
<a name="l02362"></a>02362       
<a name="l02363"></a>02363     <span class="keyword">public</span>:<span class="comment"></span>
<a name="l02364"></a>02364 <span class="comment">      /**</span>
<a name="l02365"></a>02365 <span class="comment">       * @brief Default constructs a %regex_token_iterator.</span>
<a name="l02366"></a>02366 <span class="comment">       * @todo Implement this function.</span>
<a name="l02367"></a>02367 <span class="comment">       * </span>
<a name="l02368"></a>02368 <span class="comment">       * A default-constructed %regex_token_iterator is a singular iterator</span>
<a name="l02369"></a>02369 <span class="comment">       * that will compare equal to the one-past-the-end value for any</span>
<a name="l02370"></a>02370 <span class="comment">       * iterator of the same type.</span>
<a name="l02371"></a>02371 <span class="comment">       */</span>
<a name="l02372"></a>02372       <a class="code" href="a00684.html#a8c4dd6b95c7ec9b573640afc5969ef1f" title="Default constructs a regex_token_iterator.">regex_token_iterator</a>();
<a name="l02373"></a>02373       <span class="comment"></span>
<a name="l02374"></a>02374 <span class="comment">      /**</span>
<a name="l02375"></a>02375 <span class="comment">       * Constructs a %regex_token_iterator...</span>
<a name="l02376"></a>02376 <span class="comment">       * @param a          [IN] The start of the text to search.</span>
<a name="l02377"></a>02377 <span class="comment">       * @param b          [IN] One-past-the-end of the text to search.</span>
<a name="l02378"></a>02378 <span class="comment">       * @param re         [IN] The regular expression to search for.</span>
<a name="l02379"></a>02379 <span class="comment">       * @param submatch   [IN] Which submatch to return.  There are some</span>
<a name="l02380"></a>02380 <span class="comment">       *                        special values for this parameter:</span>
<a name="l02381"></a>02381 <span class="comment">       *                        - -1 each enumerated subexpression does NOT</span>
<a name="l02382"></a>02382 <span class="comment">       *                          match the regular expression (aka field</span>
<a name="l02383"></a>02383 <span class="comment">       *                          splitting)</span>
<a name="l02384"></a>02384 <span class="comment">       *                        - 0 the entire string matching the</span>
<a name="l02385"></a>02385 <span class="comment">       *                          subexpression is returned for each match</span>
<a name="l02386"></a>02386 <span class="comment">       *                          within the text.</span>
<a name="l02387"></a>02387 <span class="comment">       *                        - &gt;0 enumerates only the indicated</span>
<a name="l02388"></a>02388 <span class="comment">       *                          subexpression from a match within the text.</span>
<a name="l02389"></a>02389 <span class="comment">       * @param m          [IN] Policy flags for match rules.</span>
<a name="l02390"></a>02390 <span class="comment">       *</span>
<a name="l02391"></a>02391 <span class="comment">       * @todo Implement this function.</span>
<a name="l02392"></a>02392 <span class="comment">       * @doctodo</span>
<a name="l02393"></a>02393 <span class="comment">       */</span>
<a name="l02394"></a>02394       <a class="code" href="a00684.html#a8c4dd6b95c7ec9b573640afc5969ef1f" title="Default constructs a regex_token_iterator.">regex_token_iterator</a>(_Bi_iter __a, _Bi_iter __b, <span class="keyword">const</span> <a class="code" href="a00402.html">regex_type</a>&amp; __re,
<a name="l02395"></a>02395                <span class="keywordtype">int</span> __submatch = 0,
<a name="l02396"></a>02396                <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __m
<a name="l02397"></a>02397                = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>);
<a name="l02398"></a>02398 <span class="comment"></span>
<a name="l02399"></a>02399 <span class="comment">      /**</span>
<a name="l02400"></a>02400 <span class="comment">       * Constructs a %regex_token_iterator...</span>
<a name="l02401"></a>02401 <span class="comment">       * @param a          [IN] The start of the text to search.</span>
<a name="l02402"></a>02402 <span class="comment">       * @param b          [IN] One-past-the-end of the text to search.</span>
<a name="l02403"></a>02403 <span class="comment">       * @param re         [IN] The regular expression to search for.</span>
<a name="l02404"></a>02404 <span class="comment">       * @param submatches [IN] A list of subexpressions to return for each</span>
<a name="l02405"></a>02405 <span class="comment">       *                        regular expression match within the text.</span>
<a name="l02406"></a>02406 <span class="comment">       * @param m          [IN] Policy flags for match rules.</span>
<a name="l02407"></a>02407 <span class="comment">       *</span>
<a name="l02408"></a>02408 <span class="comment">       * @todo Implement this function.</span>
<a name="l02409"></a>02409 <span class="comment">       * @doctodo</span>
<a name="l02410"></a>02410 <span class="comment">       */</span>
<a name="l02411"></a>02411       <a class="code" href="a00684.html#a8c4dd6b95c7ec9b573640afc5969ef1f" title="Default constructs a regex_token_iterator.">regex_token_iterator</a>(_Bi_iter __a, _Bi_iter __b,
<a name="l02412"></a>02412                <span class="keyword">const</span> <a class="code" href="a00402.html">regex_type</a>&amp; __re,
<a name="l02413"></a>02413                <span class="keyword">const</span> <a class="code" href="a00739.html">std::vector&lt;int&gt;</a>&amp; __submatches,
<a name="l02414"></a>02414                <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __m
<a name="l02415"></a>02415                  = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>);
<a name="l02416"></a>02416 <span class="comment"></span>
<a name="l02417"></a>02417 <span class="comment">      /**</span>
<a name="l02418"></a>02418 <span class="comment">       * Constructs a %regex_token_iterator...</span>
<a name="l02419"></a>02419 <span class="comment">       * @param a          [IN] The start of the text to search.</span>
<a name="l02420"></a>02420 <span class="comment">       * @param b          [IN] One-past-the-end of the text to search.</span>
<a name="l02421"></a>02421 <span class="comment">       * @param re         [IN] The regular expression to search for.</span>
<a name="l02422"></a>02422 <span class="comment">       * @param submatches [IN] A list of subexpressions to return for each</span>
<a name="l02423"></a>02423 <span class="comment">       *                        regular expression match within the text.</span>
<a name="l02424"></a>02424 <span class="comment">       * @param m          [IN] Policy flags for match rules.</span>
<a name="l02425"></a>02425 <span class="comment">       </span>
<a name="l02426"></a>02426 <span class="comment">       * @todo Implement this function.</span>
<a name="l02427"></a>02427 <span class="comment">       * @doctodo</span>
<a name="l02428"></a>02428 <span class="comment">       */</span>
<a name="l02429"></a>02429       <span class="keyword">template</span>&lt;std::<span class="keywordtype">size_t</span> _Nm&gt;
<a name="l02430"></a>02430         <a class="code" href="a00684.html#a8c4dd6b95c7ec9b573640afc5969ef1f" title="Default constructs a regex_token_iterator.">regex_token_iterator</a>(_Bi_iter __a, _Bi_iter __b,
<a name="l02431"></a>02431                  <span class="keyword">const</span> <a class="code" href="a00402.html">regex_type</a>&amp; __re,
<a name="l02432"></a>02432                  <span class="keyword">const</span> <span class="keywordtype">int</span> (&amp;__submatches)[_Nm],
<a name="l02433"></a>02433                  <a class="code" href="a01151.html#a98adb09ee60de1b79934e537c821d3fd" title="This is a bitmask type indicating regex matching rules.">regex_constants::match_flag_type</a> __m
<a name="l02434"></a>02434                  = <a class="code" href="a01151.html#a790496799d7cd836ab2c01c59a05cf5b">regex_constants::match_default</a>);
<a name="l02435"></a>02435 <span class="comment"></span>
<a name="l02436"></a>02436 <span class="comment">      /**</span>
<a name="l02437"></a>02437 <span class="comment">       * @brief Copy constructs a %regex_token_iterator.</span>
<a name="l02438"></a>02438 <span class="comment">       * @param rhs [IN] A %regex_token_iterator to copy.</span>
<a name="l02439"></a>02439 <span class="comment">       * @todo Implement this function.</span>
<a name="l02440"></a>02440 <span class="comment">       */</span>
<a name="l02441"></a>02441       <a class="code" href="a00684.html#a8c4dd6b95c7ec9b573640afc5969ef1f" title="Default constructs a regex_token_iterator.">regex_token_iterator</a>(<span class="keyword">const</span> regex_token_iterator&amp; __rhs);
<a name="l02442"></a>02442       <span class="comment"></span>
<a name="l02443"></a>02443 <span class="comment">      /**</span>
<a name="l02444"></a>02444 <span class="comment">       * @brief Assigns a %regex_token_iterator to another.</span>
<a name="l02445"></a>02445 <span class="comment">       * @param rhs [IN] A %regex_token_iterator to copy.</span>
<a name="l02446"></a>02446 <span class="comment">       * @todo Implement this function.</span>
<a name="l02447"></a>02447 <span class="comment">       */</span>
<a name="l02448"></a>02448       regex_token_iterator&amp;
<a name="l02449"></a>02449       <a class="code" href="a00684.html#ae9b8de65e12e4664143610326514d935" title="Assigns a regex_token_iterator to another.">operator=</a>(<span class="keyword">const</span> regex_token_iterator&amp; __rhs);
<a name="l02450"></a>02450       <span class="comment"></span>
<a name="l02451"></a>02451 <span class="comment">      /**</span>
<a name="l02452"></a>02452 <span class="comment">       * @brief Compares a %regex_token_iterator to another for equality.</span>
<a name="l02453"></a>02453 <span class="comment">       * @todo Implement this function.</span>
<a name="l02454"></a>02454 <span class="comment">       */</span>
<a name="l02455"></a>02455       <span class="keywordtype">bool</span>
<a name="l02456"></a>02456       <a class="code" href="a00684.html#a70a73a9cea4cda9eb5cab1c2ec4de2f8" title="Compares a regex_token_iterator to another for equality.">operator==</a>(<span class="keyword">const</span> regex_token_iterator&amp; __rhs);
<a name="l02457"></a>02457       <span class="comment"></span>
<a name="l02458"></a>02458 <span class="comment">      /**</span>
<a name="l02459"></a>02459 <span class="comment">       * @brief Compares a %regex_token_iterator to another for inequality.</span>
<a name="l02460"></a>02460 <span class="comment">       * @todo Implement this function.</span>
<a name="l02461"></a>02461 <span class="comment">       */</span>
<a name="l02462"></a>02462       <span class="keywordtype">bool</span>
<a name="l02463"></a>02463       <a class="code" href="a00684.html#a86160b38cdd3a19d91423fe837d6f977" title="Compares a regex_token_iterator to another for inequality.">operator!=</a>(<span class="keyword">const</span> regex_token_iterator&amp; __rhs);
<a name="l02464"></a>02464       <span class="comment"></span>
<a name="l02465"></a>02465 <span class="comment">      /**</span>
<a name="l02466"></a>02466 <span class="comment">       * @brief Dereferences a %regex_token_iterator.</span>
<a name="l02467"></a>02467 <span class="comment">       * @todo Implement this function.</span>
<a name="l02468"></a>02468 <span class="comment">       */</span>
<a name="l02469"></a>02469       <span class="keyword">const</span> <a class="code" href="a00704.html">value_type</a>&amp;
<a name="l02470"></a>02470       <a class="code" href="a00684.html#a269dd9d90df672c1418e3cb82eaa46a4" title="Dereferences a regex_token_iterator.">operator*</a>();
<a name="l02471"></a>02471       <span class="comment"></span>
<a name="l02472"></a>02472 <span class="comment">      /**</span>
<a name="l02473"></a>02473 <span class="comment">       * @brief Selects a %regex_token_iterator member.</span>
<a name="l02474"></a>02474 <span class="comment">       * @todo Implement this function.</span>
<a name="l02475"></a>02475 <span class="comment">       */</span>
<a name="l02476"></a>02476       <span class="keyword">const</span> <a class="code" href="a00704.html">value_type</a>*
<a name="l02477"></a>02477       <a class="code" href="a00684.html#ad5c1ea08a4501ef577228dc1ddbe38ca" title="Selects a regex_token_iterator member.">operator-&gt;</a>();
<a name="l02478"></a>02478       <span class="comment"></span>
<a name="l02479"></a>02479 <span class="comment">      /**</span>
<a name="l02480"></a>02480 <span class="comment">       * @brief Increments a %regex_token_iterator.</span>
<a name="l02481"></a>02481 <span class="comment">       * @todo Implement this function.</span>
<a name="l02482"></a>02482 <span class="comment">       */</span>
<a name="l02483"></a>02483       regex_token_iterator&amp;
<a name="l02484"></a>02484       <a class="code" href="a00684.html#a620861c9dc36471c9731661b75daa270" title="Increments a regex_token_iterator.">operator++</a>();
<a name="l02485"></a>02485       <span class="comment"></span>
<a name="l02486"></a>02486 <span class="comment">      /**</span>
<a name="l02487"></a>02487 <span class="comment">       * @brief Postincrements a %regex_token_iterator.</span>
<a name="l02488"></a>02488 <span class="comment">       * @todo Implement this function.</span>
<a name="l02489"></a>02489 <span class="comment">       */</span>
<a name="l02490"></a>02490       regex_token_iterator
<a name="l02491"></a>02491       <a class="code" href="a00684.html#a620861c9dc36471c9731661b75daa270" title="Increments a regex_token_iterator.">operator++</a>(<span class="keywordtype">int</span>);
<a name="l02492"></a>02492       
<a name="l02493"></a>02493     <span class="keyword">private</span>: <span class="comment">// data members for exposition only:</span>
<a name="l02494"></a>02494       <span class="keyword">typedef</span> <a class="code" href="a00683.html">regex_iterator&lt;_Bi_iter, _Ch_type, _Rx_traits&gt;</a> position_iterator;
<a name="l02495"></a>02495 
<a name="l02496"></a>02496       position_iterator __position;
<a name="l02497"></a>02497       <span class="keyword">const</span> <a class="code" href="a00704.html">value_type</a>* __result;
<a name="l02498"></a>02498       <a class="code" href="a00704.html">value_type</a>        __suffix;
<a name="l02499"></a>02499       std::size_t       __n;
<a name="l02500"></a>02500       <a class="code" href="a00739.html">std::vector&lt;int&gt;</a>  __subs;
<a name="l02501"></a>02501     };
<a name="l02502"></a>02502 <span class="comment"></span>
<a name="l02503"></a>02503 <span class="comment">  /** @brief Token iterator for C-style NULL-terminated strings. */</span>
<a name="l02504"></a><a class="code" href="a01192.html#ga2b025ba2913cd0f7266ddbea7eb2c915">02504</a>   <span class="keyword">typedef</span> <a class="code" href="a00684.html">regex_token_iterator&lt;const char*&gt;</a>             <a class="code" href="a01192.html#ga2b025ba2913cd0f7266ddbea7eb2c915" title="Token iterator for C-style NULL-terminated strings.">cregex_token_iterator</a>;<span class="comment"></span>
<a name="l02505"></a>02505 <span class="comment">  /** @brief Token iterator for standard strings. */</span>
<a name="l02506"></a><a class="code" href="a01192.html#gaa39e71a0a921a1f5b6e106613346195c">02506</a>   <span class="keyword">typedef</span> <a class="code" href="a00684.html">regex_token_iterator&lt;string::const_iterator&gt;</a>  <a class="code" href="a01192.html#gaa39e71a0a921a1f5b6e106613346195c" title="Token iterator for standard strings.">sregex_token_iterator</a>;
<a name="l02507"></a>02507 <span class="preprocessor">#ifdef _GLIBCXX_USE_WCHAR_T</span>
<a name="l02508"></a>02508 <span class="preprocessor"></span><span class="comment">  /** @brief Token iterator for C-style NULL-terminated wide strings. */</span>
<a name="l02509"></a><a class="code" href="a01192.html#ga5b2a538a8ce2fb132701282a685e04cb">02509</a>   <span class="keyword">typedef</span> <a class="code" href="a00684.html">regex_token_iterator&lt;const wchar_t*&gt;</a>          <a class="code" href="a01192.html#ga5b2a538a8ce2fb132701282a685e04cb" title="Token iterator for C-style NULL-terminated wide strings.">wcregex_token_iterator</a>;<span class="comment"></span>
<a name="l02510"></a>02510 <span class="comment">  /** @brief Token iterator for standard wide-character strings. */</span>
<a name="l02511"></a><a class="code" href="a01192.html#ga45d6a7c3f216b9e231d6bfbe2f405821">02511</a>   <span class="keyword">typedef</span> <a class="code" href="a00684.html">regex_token_iterator&lt;wstring::const_iterator&gt;</a> <a class="code" href="a01192.html#ga45d6a7c3f216b9e231d6bfbe2f405821" title="Token iterator for standard wide-character strings.">wsregex_token_iterator</a>;
<a name="l02512"></a>02512 <span class="preprocessor">#endif</span>
<a name="l02513"></a>02513 <span class="preprocessor"></span>  <span class="comment"></span>
<a name="l02514"></a>02514 <span class="comment">  //@} // group regex</span>
<a name="l02515"></a>02515 <span class="comment"></span>_GLIBCXX_END_NAMESPACE_VERSION
<a name="l02516"></a>02516 } <span class="comment">// namespace</span>
<a name="l02517"></a>02517 
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a01006.html">regex.h</a>      </li>
      <li class="footer">Generated by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>

</body>
</html>