On this page
operator==,!=(std::scoped_allocator_adaptor)
Defined in header <scoped_allocator> |
||
---|---|---|
|
(since C++11) | |
|
(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 |
Return value
1) Returns
true
if lhs
and rhs
are equal, false
otherwise.
2) Returns
true
if lhs
and rhs
are not equal, false
otherwise.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/memory/scoped_allocator_adaptor/operator_cmp