Namespaces
Variants

std::regex_token_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_token_iterator & other ) const ;
(1) (C++11부터)
bool operator ! = ( const regex_token_iterator & other ) const ;
(2) (C++11부터)
(C++20까지)

* this other 가 동등한지 확인합니다.

두 정규식 토큰 반복자는 다음과 같은 경우 동일합니다:

a) 둘 다 시퀀스의 끝을 나타내는 반복자입니다.
b) 둘 다 접미사 반복자이며 접미사가 동일합니다.
c) 둘 다 시퀀스의 끝이나 접미사 반복자가 아니며:
  • position == other. position
  • N == other. N
  • subs == other. subs


1) * this 동일한지 other 를 확인합니다.
2) * this other 같지 않은지 확인합니다.

!= 연산자는 합성된 operator== 로부터 생성됩니다.

(C++20부터)

매개변수

other - 비교할 다른 regex 토큰 반복자

반환값

1) true 만약 * this 동일하면 other , false 그렇지 않으면.
2) true 만약 * this 같지 않으면 other , false 그렇지 않으면.