template< class T1, class T2 > bool operator==( const std::pmr::polymorphic_allocator<T1>& lhs, const std::pmr::polymorphic_allocator<T2>& rhs ); | ||
template< class T1, class T2 > bool operator!=( const std::pmr::polymorphic_allocator<T1>& lhs, const std::pmr::polymorphic_allocator<T2>& rhs ); |
Compares two polymorphic allocators. Two polymorphic allocators compare equal if their underlying memory resource compares equal.
*lhs.resource() == *rhs.resource()
!(lhs == rhs)
lhs, rhs | - | polymorphic allocators to compare |
*lhs.resource() == *rhs.resource()
!(lhs == rhs)
noexcept
specification: noexcept
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/memory/polymorphic_allocator/operator_eq