Share via


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>;

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

See Also

Reference

Microsoft::WRL::Details Namespace