名前空間
変種

std::pmr::operator==, std::pmr::operator!=

提供: cppreference.com
 
 
動的メモリ管理
スマートポインタ
(C++11)
(C++11)
(C++11)
(C++17未満)
(C++11)
アロケータ
メモリリソース
未初期化記憶域
ガベージコレクションサポート
その他
(C++20)
(C++11)
(C++11)
C のライブラリ
低水準のメモリ管理
 
 
<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)