名稱空間
變體
操作

std::destroying_delete_t, std::destroying_delete

來自 cppreference.com
< cpp‎ | 記憶體‎ | new
 
 
 
記憶體管理庫
(僅作說明*)
未初始化記憶體演算法
(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*)
顯式生命週期管理
 
 
定義於標頭檔案 <new>
struct destroying_delete_t { explicit destroying_delete_t() = default; };
(1) (C++20 起)
inline constexpr destroying_delete_t destroying_delete{};
(2) (C++20 起)

用於標識 operator delete 的銷燬性刪除形式的標籤型別。

[編輯] 另請參閱

釋放函式
(函式) [編輯]