◐ Shell
clean mode source ↗

std::pmr::operator==, std::pmr::operator!= - cppreference.com

提供: 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) を返します。

引数

戻り値

1) *lhs.resource() == *rhs.resource()

2) !(lhs == rhs)