DontUseNewUseMake 類別
支援 WRL 基礎結構,並不適合直接從您的程式代碼使用。
語法
class DontUseNewUseMake;
備註
防止 在中使用RuntimeClass
運算符new
。 因此,您必須改用 Make函式 。
成員
公用運算子
名稱 | 描述 |
---|---|
DontUseNewUseMake::operator new | 多載 運算子 new ,並防止它在 中使用 RuntimeClass 。 |
繼承階層架構
DontUseNewUseMake
需求
標頭: implements.h
命名空間: Microsoft::WRL::D etails
DontUseNewUseMake::operator new
支援 WRL 基礎結構,並不適合直接從您的程式代碼使用。
void* operator new(
size_t,
_In_ void* placement
);
參數
__unnamed0
未命名的參數,指定要配置的記憶體位元組數目。
放置
要配置的型別。
傳回值
如果您多載運算子 new
,提供傳遞其他自變數的方法。
備註
多載 運算子 new
,並防止它在 中使用 RuntimeClass
。