Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

EnableIf Structure

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.

Header: internal.h

Namespace: Microsoft::WRL::Details

Show:
© 2015 Microsoft