operator==,!= (std::match_results)
|
헤더에 정의됨
<regex>
|
||
|
template
<
class
BidirIt,
class
Alloc
>
bool
operator
==
(
match_results
<
BidirIt,Alloc
>
&
lhs,
|
(1) | (C++11부터) |
|
template
<
class
BidirIt,
class
Alloc
>
bool
operator
!
=
(
match_results
<
BidirIt,Alloc
>
&
lhs,
|
(2) |
(C++11부터)
(C++20까지) |
두 개의
match_results
객체를 비교합니다.
두
match_results
가 다음 조건을 충족하면 동일합니다:
- 두 객체 중 어느 것도 ready 상태가 아니거나, or
- 두 match 결과가 모두 ready 상태이고 다음 조건이 충족되는 경우:
-
- lhs. empty ( ) 그리고 rhs. empty ( ) , 또는
- ! lhs. empty ( ) 그리고 ! rhs. empty ( ) 이며 다음 조건들이 충족되는 경우:
-
- lhs. prefix ( ) == rhs. prefix ( )
- lhs. size ( ) == rhs. size ( ) && std:: equal ( lhs. begin ( ) , lhs. end ( ) , rhs. begin ( ) )
- lhs. suffix ( ) == rhs. suffix ( )
|
|
(C++20부터) |
목차 |
매개변수
| lhs, rhs | - | 비교할 매치 결과 |
| 타입 요구사항 | ||
-
BidirIt
는
LegacyBidirectionalIterator
요구사항을 충족해야 합니다.
|
||
-
Alloc
는
Allocator
요구사항을 충족해야 합니다.
|
||
반환값
예외
구현 정의 예외를 던질 수 있습니다.
예제
|
이 섹션은 불완전합니다
이유: 예제가 없음 |