หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Supports the WRL infrastructure and is not intended to be used directly from your code.
Syntax
template <bool b, typename T = void>
struct EnableIf;
template <typename T>
struct EnableIf<true, T>;
Parameters
T
A type.
b
A Boolean expression.
Remarks
Defines a data member of the type specified by the second template parameter if the first template parameter evaluates to true.
Members
Public Typedefs
| Name | Description |
|---|---|
type |
If template parameter b evaluates to true, the partial specialization defines data member type to be of type T. |
Inheritance Hierarchy
EnableIf
Requirements
Header: internal.h
Namespace: Microsoft::WRL::Details