std::experimental::pmr::memory_resource:: do_is_equal
Convenience aliases for containers using
polymorphic_allocator
|
||||
| Memory resource classes | ||||
| Global memory resources | ||||
| Type-erased allocator support for existing classes | ||||
| Public member functions | ||||
| Protected member functions | ||||
|
memory_resource::do_is_equal
|
||||
| Non-member functions | ||||
|
virtual
bool
is_equal
(
const
memory_resource
&
other
)
const
noexcept
=
0
;
|
(ライブラリ基盤 TS) | |
* this と other が等しいかどうかを比較します。
2つの
memory_resource
が等しいと比較されるのは、一方の
memory_resource
から割り当てられたメモリが他方から解放可能であり、その逆も同様である場合に限ります。
注記
other の最も派生した型は、 * this の最も派生した型と一致しない可能性があります。したがって、派生クラスの実装では通常、 * this と other の最も派生した型が dynamic_cast を使用して一致するかどうかを確認し、キャストが失敗した場合は直ちに false を返す必要があります。
関連項目
別の
memory_resource
との等値比較
(公開メンバ関数) |