std::pmr::operator==, std::pmr::operator!=
提供: cppreference.com
<tbody>
</tbody>
template< class T1, class T2 > bool operator==( const std::pmr::polymorphic_allocator<T1>& lhs, const std::pmr::polymorphic_allocator<T2>& rhs ) noexcept; |
||
template< class T1, class T2 > bool operator!=( const std::pmr::polymorphic_allocator<T1>& lhs, const std::pmr::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)