std::regex_iterator<BidirIt,CharT,Traits>:: operator==,operator!=
From cppreference.net
<
cpp
|
regex
|
regex iterator
|
bool
operator
==
(
const
regex_iterator
&
rhs
)
const
;
|
(1) | (seit C++11) |
|
bool
operator
!
=
(
const
regex_iterator
&
rhs
)
const
;
|
(2) |
(seit C++11)
(bis C++20) |
Vergleicht zwei
regex_iterator
s.
|
Der
|
(seit C++20) |
Parameter
| rhs | - |
ein
regex_iterator
zum Vergleich
|
Rückgabewert
Der Anschaulichkeit halber nehmen wir an, dass
regex_iterator
die folgenden Member enthält:
-
BidirIt begin; -
BidirIt end; - const regex_type * pregex ;
- std:: regex_constants :: match_flag_type flags ;
- std:: match_results < BidirIt > match ;
1)
Gibt
true
zurück, falls
*
this
und
rhs
beide End-of-Sequence-Iteratoren sind, oder wenn alle folgenden Bedingungen erfüllt sind:
- begin == rhs. begin
- end == rhs. end
- pregex == rhs. pregex
- flags == rhs. flags
- match [ 0 ] == rhs. match [ 0 ]
2)
Gibt zurück
!
(
*
this
==
rhs
)
.
Beispiel
|
Dieser Abschnitt ist unvollständig
Grund: Kein Beispiel |