Namespaces
Variants

std::regex_iterator<BidirIt,CharT,Traits>:: operator==,operator!=

From ru.cppreference.net
Regular expressions library
Classes
(C++11)
Algorithms
Iterators
Exceptions
Traits
Constants
(C++11)
Regex Grammar
bool operator == ( const regex_iterator & rhs ) const ;
(1) (начиная с C++11)
bool operator ! = ( const regex_iterator & rhs ) const ;
(2) (начиная с C++11)
(до C++20)

Сравнивает два regex_iterator .

Оператор != синтезируется из operator== .

(since C++20)

Параметры

rhs - a regex_iterator для сравнения

Возвращаемое значение

Для наглядности предположим, что regex_iterator содержит следующие члены:

1) Возвращает true если * this и rhs оба являются итераторами конца последовательности, или если выполняются все следующие условия:
  • begin == rhs. begin
  • end == rhs. end
  • pregex == rhs. pregex
  • flags == rhs. flags
  • match [ 0 ] == rhs. match [ 0 ]
2) Возвращает ! ( * this == rhs ) .

Пример