Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Makes non const type from type.
template<class Ty>
struct remove_const;
Parameters
- Ty
The type to modify.
Remarks
An instance of the type modifier holds a modified-type that is Ty1 when Ty is of the form const Ty1, otherwise Ty.
Example
// 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);
}
remove_const<const int> == int
Requirements
Header: <type_traits>
Namespace: std