std::remove_pointer
Da cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Definido no cabeçalho <type_traits>
|
||
template< class T > struct remove_pointer; |
(desde C++11) | |
Provides the member typedef type
which is the type pointed to by T
, or, if T
is not a pointer, then type
is the same as T
.
Índice |
[editar] Tipos de membro
Nome
Original: Name The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
type
|
the type pointed to by T or T if it's not a pointer
|
[editar] Possível implementação
template< class T > struct remove_pointer {typedef T type;}; template< class T > struct remove_pointer<T*> {typedef T type;}; template< class T > struct remove_pointer<T* const> {typedef T type;}; template< class T > struct remove_pointer<T* volatile> {typedef T type;}; template< class T > struct remove_pointer<T* const volatile> {typedef T type;}; |
[editar] Exemplo
Esta seção está incompleta Motivo: sem exemplo |
[editar] Veja também
(C++11) |
verifica se um tipo é um tipo de ponteiro Original: checks if a type is a pointer type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de classe) |
(C++11) |
acrescenta ponteiro para o tipo de dado Original: adds pointer to the given type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de classe) |