EnableIf 結構
支援 WRL 基礎結構,並不適合直接從您的程式代碼使用。
語法
template <bool b, typename T = void>
struct EnableIf;
template <typename T>
struct EnableIf<true, T>;
參數
T
型別。
b
Boolean 運算式。
備註
如果第一個樣板參數評估為 true
,則定義第二個樣板參數所指定的型別數據成員。
成員
公用 Typedefs
名稱 | 描述 |
---|---|
type |
如果樣板參數 b 評估為 true ,則部分特製化會將數據成員type 定義為類型T 。 |
繼承階層架構
EnableIf
需求
標頭: internal.h
命名空間: Microsoft::WRL::D etails