std::pmr::operator==, std::pmr::operator!=
< cpp | memory | polymorphic allocator
|
Defined in header
<memory_resource> |
||
|
template< class T1, class T2 >
bool operator==( const std::pmr::polymorphic_allocator<T1>& lhs, |
(1) | (since C++17) |
|
template< class T1, class T2 >
bool operator!=( const std::pmr::polymorphic_allocator<T1>& lhs, |
(2) | (since C++17) (until C++20) |
Compares two polymorphic allocators. Two polymorphic allocators compare equal if their underlying memory resource compares equal.
1) Returns *lhs.resource() == *rhs.resource()
2) Returns !(lhs == rhs)
|
The |
(since C++20) |
Parameters
| lhs, rhs | - | polymorphic allocators to compare |
Return value
1) *lhs.resource() == *rhs.resource()
2) !(lhs == rhs)