Udostępnij za pośrednictwem


remove_reference Class

Sprawia, że innych niż typ z typem odwołania.

template<class Ty>
    struct remove_reference;

Parametry

  • Ty
    Typ, aby zmodyfikować.

Uwagi

Wystąpienie modyfikator typu posiada modyfikacji typu, który jest Ty1 po Ty ma postać Ty1&, w przeciwnym razie Ty.

Przykład

 

// std_tr1__type_traits__remove_reference.cpp 
// compile with: /EHsc 
#include <type_traits> 
#include <iostream> 
 
int main() 
    { 
    int *p = (std::remove_reference<int&>::type *)0; 
 
    p = p;  // to quiet "unused" warning 
    std::cout << "remove_reference<int&> == " 
        << typeid(*p).name() << std::endl; 
 
    return (0); 
    } 
 
  

Wymagania

Nagłówek: <type_traits>

Obszar nazw: std

Zobacz też

Informacje

<type_traits>

add_reference Class

Inne zasoby

<type_traits> Członkowie