名稱空間
變體
操作

std::pmr::monotonic_buffer_resource::do_is_equal

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

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

比較 *thisother 是否相同 - 使用 monotonic_buffer_resource 分配的記憶體只能使用相同的資源進行釋放。

[編輯] 返回值

this == &other

[編輯] 缺陷報告

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

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

[編輯] 參閱

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