Sdílet prostřednictvím


remove_const Class

Díky než argument typ typu.

template<class Ty>
    struct remove_const;

Parametry

  • Ty
    Typ změnit.

Poznámky

Instance typu modifikátor obsahuje změny typ, který je Ty1 při Ty je ve formuláři const Ty1, jinak Ty.

Příklad

 

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

Požadavky

Záhlaví: <type_traits>

Obor názvů: std

Viz také

Referenční dokumentace

<type_traits>

add_const Class

remove_cv Class

Další zdroje

<type_traits> Členové