Namespaces
Variants
Views
Actions

cpp/regex/regex token iterator/operator cmp

From cppreference.com
< cpp‎ | regex‎ | regex token iterator
Revision as of 17:19, 5 June 2013 by P12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
bool operator==( const regex_token_iterator& other ) const;
(since C++11)
bool operator!=( const regex_token_iterator& other ) const;
(since C++11)

Checks whether *this and other are equivalent.

Two regex token iterators are equal if:

a) They are both end-of-sequence iterators
b) They are both suffix iterators and the suffixes are equal.
c) Neither of them is end-of-sequence or suffix iterator and:
  • position == other.position
  • N == other.N
  • subs == other.subs


1) Checks whether *this is equal to other.
2) Checks whether *this is not equal to other.

[edit] Parameters

other - another regex token iterator to compare to

[edit] Return value

1) true if *this is equal to other, false otherwise.
2) true if *this is not equal to other, false otherwise.