名稱空間
變體
操作

std::pmr::unsynchronized_pool_resource::do_is_equal

來自 cppreference.com
 
 
記憶體管理庫
(僅作說明*)
未初始化記憶體演算法
受約束的未初始化
記憶體演算法
C 庫

分配器
記憶體資源
垃圾回收支援
(C++11)(直到 C++23)
未初始化儲存
顯式生命週期管理
智慧指標
低階記憶體
管理
雜項
 
 
virtual bool do_is_equal( const std::pmr::memory_resource& other ) const noexcept;
(C++17 起)

*thisother 進行身份比較 - 使用 `unsynchronized_pool_resource` 分配的記憶體只能使用相同的資源進行釋放。

[編輯] 返回值

this == &other

[編輯] 缺陷報告

下列更改行為的缺陷報告追溯地應用於以前出版的 C++ 標準。

缺陷報告 應用於 釋出時的行為 正確的行為
LWG 3000 C++17 執行了不必要的 `dynamic_cast` 已移除

[編輯] 另請參閱

[虛擬函式]
與另一個 memory_resource 進行相等比較
(std::pmr::memory_resource 的虛私有成員函式)[編輯]