Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Makes type from pointer to type.
template<class Ty>
struct remove_pointer;
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 Ty1*, Ty1* const, Ty1* volatile, or Ty1* const volatile, otherwise Ty.
Example
// std_tr1__type_traits__remove_pointer.cpp
// compile with: /EHsc
#include <type_traits>
#include <iostream>
int main()
{
int *p = (std::tr1::remove_pointer<int *>::type *)0;
p = p; // to quiet "unused" warning
std::cout << "remove_pointer<int *> == "
<< typeid(*p).name() << std::endl;
return (0);
}
remove_pointer<int *> == int
Requirements
Header: <type_traits>
Namespace: std::tr1