std::regex_iterator::operator==,operator!=
De cppreference.com
< cpp | regex | regex iterator
bool operator==(const regex_iterator& rhs) const; |
(1) | (desde C++11) |
bool operator!=(const regex_iterator& rhs) const; |
(2) | (desde C++11) (hasta C++20) |
Compara dos objetos regex_iterator
.
El operador |
(desde C++20) |
[editar] Parámetros
rhs | - | Un regex_iterator con el que comparar.
|
[editar] 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).
[editar] Ejemplo
Esta sección está incompleta Razón: sin ejemplo |