operator== (std::text_encoding)
From cppreference.net
<
cpp
|
text
|
text encoding
|
friend
constexpr
bool
operator
==
(
const
text_encoding
&
a,
const text_encoding & b ) noexcept ; |
(1) | (C++26부터) |
|
friend
constexpr
bool
operator
==
(
const
text_encoding
&
a, id i
)
noexcept
;
|
(2) | (C++26부터) |
text_encoding
객체에 대한 비교 연산을 수행합니다.
1)
두 개의
text_encoding
객체를 비교합니다. 두 객체는 다음 조건을 모두 만족할 때에만 동등하게 비교됩니다:
comp-name
(
a.
name
(
)
, b.
name
(
)
)
가
true
이고, 동시에
a.
mib
(
)
와
b.
mib
(
)
가 모두
id
::
other
와 같거나, 또는
a.
mib
(
)
가
b.
mib
(
)
와 같은 경우입니다.
2)
text_encoding
객체를 MIBenum 값과 비교합니다. 객체는
a.
mib
(
)
가
i
와 동일한 경우에만 동등하게 비교됩니다.
이 함수들은 일반적인
unqualified lookup
또는
qualified lookup
으로는 보이지 않으며, 인수가
std::text_encoding
을 연관 클래스로 가질 때에만
argument-dependent lookup
을 통해서만 찾을 수 있습니다.
!=
연산자는
합성된
operator==
로부터 생성됩니다.
목차 |
매개변수
| a, b | - |
text_encoding
비교할 객체들
|
| i | - |
id
값.
a
에 포함된 MIBenum 값과 비교됨
|
반환값
1)
a.
mib
(
)
==
id
::
other
&&
b.
mib
(
)
==
id
::
other
?
comp-name
(
a.
name
(
)
, b.
name
(
)
)
:
a.
mib
(
)
==
b.
mib
(
)
.
2)
a.
mib
(
)
==
i
.
예제
|
이 섹션은 불완전합니다
이유: 예시가 없음 |
참고 항목
|
(removed in C++20)
|
로케일 객체 간의 동등성 비교
(
std::locale
의 public 멤버 함수)
|