Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Makes non volatile type from type.
template<class Ty>
struct remove_volatile;
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 volatile Ty1, otherwise Ty.
Example
// std__type_traits__remove_volatile.cpp
// compile with: /EHsc
#include <type_traits>
#include <iostream>
int main()
{
int *p = (std::remove_volatile<volatile int>::type *)0;
p = p; // to quiet "unused" warning
std::cout << "remove_volatile<volatile int> == "
<< typeid(*p).name() << std::endl;
return (0);
}
remove_volatile<volatile int> == int
Requirements
Header: <type_traits>
Namespace: std