Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.13 KB

enableif-structure.md

File metadata and controls

56 lines (37 loc) · 1.13 KB
description title ms.date ms.topic f1_keywords helpviewer_keywords ms.assetid
Learn more about: EnableIf Structure
EnableIf Structure
10/03/2018
reference
internal/Microsoft::WRL::Details::EnableIf
EnableIf structure
7825b283-e6b2-4f39-a4b9-c03bcd431b8e

EnableIf Structure

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

See also

Microsoft::WRL::Details Namespace