operator==,!= (std::scoped_allocator_adaptor)
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Non-member functions | ||||
|
operator==
operator!=
(until C++20)
|
||||
| Deduction guides (C++17) |
|
Defined in header
<scoped_allocator>
|
||
|
template
<
class
OuterAlloc1,
class
OuterAlloc2,
class
...
InnerAllocs
>
bool
operator
==
(
const
scoped_allocator_adaptor
<
OuterAlloc1, InnerAllocs...
>
&
lhs,
|
(since C++11) | |
|
template
<
class
OuterAlloc1,
class
OuterAlloc2,
class
...
InnerAllocs
>
bool
operator
!
=
(
const
scoped_allocator_adaptor
<
OuterAlloc1, InnerAllocs...
>
&
lhs,
|
(since C++11)
(until C++20) |
|
Compares two scoped allocator adaptors. Two such allocators are equal if:
- lhs. outer_allocator ( ) == rhs. outer_allocator ( ) , and
- if sizeof... ( InnerAllocs ) > 0 , lhs. inner_allocator ( ) == rhs. inner_allocator ( ) .
|
The
|
(since C++20) |
Parameters
| lhs, rhs | - | scoped allocator adaptors to compare |