std::regex_iterator::operator==,operator!= - cppreference.com
De cppreference.com
|
|
(1) | (desde C++11) |
|
|
(2) | (desde C++11) (hasta C++20) |
Compara dos objetos regex_iterator.
|
El operador |
(desde C++20) |
Parámetros
| rhs | - | Un regex_iterator con el que comparar.
|
Valor de retorno
En aras de la exposición, supón que regex_iterator contiene los siguientes miembros:
BidirIt begin;BidirIt end;const regex_type *pregex;std::regex_constants::match_flag_type flags;std::match_results<BidirIt> match;
1) Devuelve true si *this y rhs son ambos iteradores de fin de secuencia, o si todas las siguientes condiciones son verdaderas:
begin == rhs.begin;end == rhs.end;pregex == rhs.pregex;flags == rhs.flags;match[0] == rhs.match[0].
2) Devuelve !(*this == rhs).