std::experimental::pmr::memory_resource::do_is_equal
From cppreference.com
< cpp | experimental | memory resource
| virtual bool is_equal( const memory_resource& other ) const noexcept = 0; |
(Library Fundamentals TS) | |
*this と other の等価性を比較します。
2つのmemory_resourceが等しいとみなされるのは、一方のmemory_resourceから割り当てられたメモリが他方から解放でき、その逆も成り立つ場合のみです。
[編集] 注釈
other の最も派生した型は、*this の最も派生した型と一致しない場合があります。したがって、派生クラスの実装は、通常、dynamic_cast を使用して *this と other の最も派生した型が一致するかどうかを確認し、キャストが失敗した場合は直ちに false を返す必要があります。
[編集] 関連項目
別のmemory_resourceとの等価性を比較する(public メンバ関数) |