std::regex_iterator<BidirIt,CharT,Traits>:: operator==,operator!=
From cppreference.net
<
cpp
|
regex
|
regex iterator
|
bool
operator
==
(
const
regex_iterator
&
rhs
)
const
;
|
(1) | (C++11 이후) |
|
bool
operator
!
=
(
const
regex_iterator
&
rhs
)
const
;
|
(2) |
(C++11 이후)
(C++20 이전) |
두 개의
regex_iterator
를 비교합니다.
|
|
(C++20 이후) |
매개변수
| rhs | - |
비교할
regex_iterator
|
반환값
설명을 위해,
regex_iterator
가 다음과 같은 멤버들을 포함한다고 가정합니다:
-
BidirIt begin; -
BidirIt end; - const regex_type * pregex ;
- std:: regex_constants :: match_flag_type flags ;
- std:: match_results < BidirIt > match ;
1)
다음 조건 중 하나를 만족하면
true
를 반환합니다:
- begin == rhs. begin
- end == rhs. end
- pregex == rhs. pregex
- flags == rhs. flags
- match [ 0 ] == rhs. match [ 0 ]
2)
반환값
!
(
*
this
==
rhs
)
.
예제
|
이 섹션은 불완전합니다
이유: 예제 없음 |