Namespaces
Variants

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

From 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== 로부터 생성됩니다.

(C++20 이후)

매개변수

rhs - 비교할 regex_iterator

반환값

설명을 위해, regex_iterator 가 다음과 같은 멤버들을 포함한다고 가정합니다:

**참고:** HTML 태그 내의 C++ 코드와 기술 용어는 번역에서 제외되었으며, 원본 형식이 그대로 유지되었습니다.
1) 다음 조건 중 하나를 만족하면 true 를 반환합니다:
  • begin == rhs. begin
  • end == rhs. end
  • pregex == rhs. pregex
  • flags == rhs. flags
  • match [ 0 ] == rhs. match [ 0 ]
2) 반환값 ! ( * this == rhs ) .

예제