Namespaces
Variants

std::experimental::pmr::memory_resource:: do_is_equal

From cppreference.net
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 との等値比較
(公開メンバ関数)