operator==,!= (std::scoped_allocator_adaptor)
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Non-member functions | ||||
|
operator==
operator!=
(until C++20)
|
||||
| Deduction guides (C++17) |
|
헤더 파일에 정의됨
<scoped_allocator>
|
||
|
template
<
class
OuterAlloc1,
class
OuterAlloc2,
class
...
InnerAllocs
>
bool
operator
==
(
const
scoped_allocator_adaptor
<
OuterAlloc1, InnerAllocs...
>
&
lhs,
|
(C++11부터) | |
|
template
<
class
OuterAlloc1,
class
OuterAlloc2,
class
...
InnerAllocs
>
bool
operator
!
=
(
const
scoped_allocator_adaptor
<
OuterAlloc1, InnerAllocs...
>
&
lhs,
|
(C++11부터)
(C++20까지) |
|
두 스코프 할당자 어댑터를 비교합니다. 두 할당자는 다음과 같은 경우 동일합니다:
- lhs. outer_allocator ( ) == rhs. outer_allocator ( ) , 그리고
- 만약 sizeof... ( InnerAllocs ) > 0 이면, lhs. inner_allocator ( ) == rhs. inner_allocator ( ) 입니다.
|
|
(C++20부터) |
매개변수
| lhs, rhs | - | 비교할 스코프 할당자 어댑터 |