C++ 新庫 - nothrow_t



描述

它是一種nothrow常量型別,專門用於過載動態記憶體分配運算子函式operator new, operator new[], operator delete 和 operator delete[]。

它是在<new>標頭檔案中定義的一個空類。此標頭檔案還定義了標準常量nothrow,它是此型別的值,專門用於呼叫過載的運算子函式。

以下是std::nothrow_t的宣告。

		
struct nothrow_t {};
new.htm
廣告
© . All rights reserved.