Condividi tramite


IsSame (struttura)

Supporta l'infrastruttura WRL e non deve essere usata direttamente dal codice.

Sintassi

template <typename T1, typename T2>
struct IsSame;

template <typename T1>
struct IsSame<T1, T1>;

Parametri

T1
Tipo.

T2
Un altro tipo.

Osservazioni:

Verifica se un tipo specificato è uguale a un altro tipo specificato.

Membri

Costanti pubbliche

Nome Descrizione
IsSame::value Indica se un tipo è uguale a un altro.

Gerarchia di ereditarietà

IsSame

Requisiti

Intestazione: internal.h

Spazio dei nomi: Microsoft::WRL::D etails

IsSame::value

Supporta l'infrastruttura WRL e non deve essere usata direttamente dal codice.

template <typename T1, typename T2>
struct IsSame
{
    static const bool value = false;
};

template <typename T1>
struct IsSame<T1, T1>
{
    static const bool value = true;
};

Osservazioni:

Indica se un tipo è uguale a un altro.

value è true se i parametri del modello sono uguali e false se i parametri del modello sono diversi.