std::regex_iterator<BidirIt,CharT,Traits>:: operator==,operator!=
From ru.cppreference.net
<
cpp
|
regex
|
regex iterator
|
bool
operator
==
(
const
regex_iterator
&
rhs
)
const
;
|
(1) | (начиная с C++11) |
|
bool
operator
!
=
(
const
regex_iterator
&
rhs
)
const
;
|
(2) |
(начиная с C++11)
(до C++20) |
Сравнивает два
regex_iterator
.
|
Оператор
|
(since C++20) |
Параметры
| rhs | - |
a
regex_iterator
для сравнения
|
Возвращаемое значение
Для наглядности предположим, что
regex_iterator
содержит следующие члены:
-
BidirIt begin; -
BidirIt end; - const regex_type * pregex ;
- std:: regex_constants :: match_flag_type flags ;
- std:: match_results < BidirIt > match ;
1)
Возвращает
true
если
*
this
и
rhs
оба являются итераторами конца последовательности, или если выполняются все следующие условия:
- begin == rhs. begin
- end == rhs. end
- pregex == rhs. pregex
- flags == rhs. flags
- match [ 0 ] == rhs. match [ 0 ]
2)
Возвращает
!
(
*
this
==
rhs
)
.
Пример
|
Этот раздел не завершён
Причина: отсутствует пример |