operator==,!=(std::experimental::pmr::polymorphic_allocator)
From cppreference.com
< cpp | experimental | polymorphic allocator
| template< class T1, class T2 > bool operator==( const polymorphic_allocator<T1>& lhs, const polymorphic_allocator<T2>& rhs ) noexcept; |
||
| template< class T1, class T2 > bool operator!=( const polymorphic_allocator<T1>& lhs, const polymorphic_allocator<T2>& rhs ) noexcept; |
||
2つのポリモーフィックアロケータを比較します。2つのポリモーフィックアロケータは、それらの基になるメモリリソースが比較して等しい場合に等しいとみなされます。
1) *lhs.resource() == *rhs.resource() を返します。
2) !(lhs == rhs) を返します。
[編集] パラメータ
| lhs, rhs | - | 比較するポリモーフィックアロケータ |
[編集] 戻り値
1) *lhs.resource() == *rhs.resource()
2) !(lhs == rhs)