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 ( ) 。
|
|
(since C++20) |
参数
| lhs, rhs | - | 用于比较的作用域分配器适配器 |