Namespaces
Variants
Views
Actions

std::regex_iterator::operator==,operator!=

From cppreference.com
< cpp‎ | regex‎ | regex iterator
Revision as of 08:43, 15 January 2013 by Nate (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:ddcl list begin <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
bool operator==(const regex_iterator& rhs) const;
</td>

<td > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
bool operator!=(const regex_iterator& rhs) const;
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Compares two regex_iterators.

For the sake of exposition, assume that regex_iterator contains the following members:

1) Returns true if *this and rhs are both end-of-sequence iterators, or if all of the following conditions are true:
  • begin == rhs.begin
  • end == rhs.end
  • pregex == rhs.pregex
  • flags == rhs.flags
  • match[0] == rhs.match[0]
2) Returns !(*this == rhs)

Parameters

rhs - a regex_iterator to compare to

Example