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) |
|
Сравнивает два адаптера scoped allocator. Два таких аллокатора равны, если:
- lhs. outer_allocator ( ) == rhs. outer_allocator ( ) , и
- если sizeof... ( InnerAllocs ) > 0 , lhs. inner_allocator ( ) == rhs. inner_allocator ( ) .
|
Оператор
|
(since C++20) |
Параметры
| lhs, rhs | - | адаптеры scoped allocator для сравнения |