operator==, <=> (std::indirect)
|
헤더에 정의됨
<memory>
|
||
|
두
indirect
객체 비교
|
||
|
template
<
class
U,
class
A
>
constexpr
bool
operator
==
(
const
indirect
&
lhs,
const
indirect
<
U, A
>
&
rhs
)
|
(1) | (C++26부터) |
|
template
<
class
U,
class
A
>
constexpr
/*synth-three-way-result*/
<
T, U
>
|
(2) | (C++26부터) |
indirect
객체와 값 비교
|
||
|
template
<
class
U
>
constexpr
bool
operator
==
(
const
indirect
&
ind,
const
U
&
value
)
|
(3) | (C++26부터) |
|
template
<
class
U
>
constexpr
/*synth-three-way-result*/
<
T, U
>
|
(4) | (C++26부터) |
indirect
객체에 대한 비교 연산을 수행합니다.
/*synth-three-way-result*/ 의 정의는 synth-three-way-result 를 참조하십시오.
indirect
객체를 비교하며, 비교 결과는 다음과 같이 정의됩니다:
| lhs | valueless | not valueless | ||
|---|---|---|---|---|
| rhs | valueless | not valueless | valueless | not valueless |
| operator == | true | false | false | * lhs == * rhs |
| operator <=> |
!
lhs.
valueless_after_move
(
)
<=>
! rhs. valueless_after_move ( ) |
synth-three-way
(
*
lhs,
*
rhs
)
|
||
indirect
객체를 값과 비교할 때, 비교 결과는 다음과 같이 정의됩니다:
| Operator | ind is valueless | ind is not valueless |
|---|---|---|
| operator == | false | * ind == value |
| operator <=> | std :: strong_ordering :: less | synth-three-way ( * ind, value ) |
매개변수
| lhs, rhs, ind | - |
비교할
indirect
객체
|
| value | - | 소유된 값과 비교할 값 |
반환값
위에서 설명한 바와 같습니다.
예제
|
이 섹션은 불완전합니다
이유: 예제가 없음 |