add_cv Class
Díky typu const/volatile z typu.
template<class Ty>
struct add_cv;
Parametry
- Ty
Typ změnit.
Poznámky
Instance typu modifikátor ukládá změny typ add_volatile Class< add_const Class<Ty> >.
Příklad
// 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);
}
Požadavky
Záhlaví: <type_traits>
Obor názvů: std