[re.regiter.comp]

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

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

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

#### 28.6.11.1 Class template regex_iterator [[re.regiter]](re.regiter#comp)

#### 28.6.11.1.3 Comparisons [re.regiter.comp]

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

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

[1](#1)

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

*Returns*: true if *this and right are both end-of-sequence
iterators or if the following conditions all hold:

- [(1.1)](#1.1)

begin == right.begin,

- [(1.2)](#1.2)

end == right.end,

- [(1.3)](#1.3)

pregex == right.pregex,

- [(1.4)](#1.4)

flags == right.flags, and

- [(1.5)](#1.5)

match[0] == right.match[0];

otherwise false[.](#1.sentence-1)
