[re.tokiter.comp]

# 28 Text processing library [[text]](./#text)

## 28.6 Regular expressions library [[re]](re#tokiter.comp)

### 28.6.11 Regular expression iterators [[re.iter]](re.iter#re.tokiter.comp)

#### 28.6.11.2 Class template regex_token_iterator [[re.tokiter]](re.tokiter#comp)

#### 28.6.11.2.3 Comparisons [re.tokiter.comp]

[ð](#lib:regex_token_iterator,operator==)

`bool operator==(const regex_token_iterator& right) const;
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/text.tex#L12692)

*Returns*: true if *this and right are both end-of-sequence iterators,
or if *this and right are both suffix iterators and suffix == right.suffix;
otherwise returns false if *this or right is an end-of-sequence
iterator or a suffix iterator[.](#1.sentence-1)

Otherwise returns true if position == right.position,N == right.N, and subs == right.subs[.](#1.sentence-2)

Otherwise returns false[.](#1.sentence-3)
