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 const/volatile type from type.
template<class Ty>
struct add_cv;
Parameters
- Ty
The type to modify.
Remarks
An instance of the type modifier holds the modified-type add_volatile Class< add_const Class<Ty> >.
Example
// std_tr1__type_traits__add_cv.cpp
// compile with: /EHsc
#include <type_traits>
#include <iostream>
int main()
{
std::add_cv<int>::type *p = (const volatile int *)0;
p = p; // to quiet "unused" warning
std::cout << "add_cv<int> == "
<< typeid(*p).name() << std::endl;
return (0);
}
add_cv<int> == int
Requirements
Header: <type_traits>
Namespace: std