Namespaces
Variants

std::pmr::monotonic_buffer_resource:: do_is_equal

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
virtual bool do_is_equal ( const std:: pmr :: memory_resource & other ) const noexcept ;
(C++17以降)

同一性について * this other を比較します - monotonic_buffer_resource を使用して割り当てられたメモリは、同じリソースを使用してのみ解放できます。

戻り値

this == & other

不具合報告

以下の動作変更の欠陥報告書は、以前に公開されたC++規格に対して遡及的に適用されました。

DR 適用対象 公開時の動作 正しい動作
LWG 3000 C++17 不要な dynamic_cast が実行されていた 削除された

関連項目

[virtual]
別の memory_resource との等価性を比較
( std::pmr::memory_resource の仮想プライベートメンバ関数)