description | title | ms.date | ms.topic | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|---|
Learn more about: EnableIf Structure |
EnableIf Structure |
10/03/2018 |
reference |
|
|
7825b283-e6b2-4f39-a4b9-c03bcd431b8e |
Supports the WRL infrastructure and is not intended to be used directly from your code.
template <bool b, typename T = void>
struct EnableIf;
template <typename T>
struct EnableIf<true, T>;
T
A type.
b
A Boolean expression.
Defines a data member of the type specified by the second template parameter if the first template parameter evaluates to true
.
Name | Description |
---|---|
type |
If template parameter b evaluates to true , the partial specialization defines data member type to be of type T . |
EnableIf
Header: internal.h
Namespace: Microsoft::WRL::Details