std::add_pointer
De 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. |
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <type_traits>
|
||
template< class T > struct add_pointer; |
(desde C++11) | |
Fornece o
type membro typedef que é o T* tipo. Se T é um tipo de referência, então type é um ponteiro para o tipo referido.Original:
Provides the member typedef
type which is the type T*. If T is a reference type, then type is a pointer to the referred type.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
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
|
ponteiro para
T ou para o tipo referenciado por TOriginal: pointer to T or to the type referenced by TThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Possível implementação
template< class T >
struct add_pointer {
typedef typename std::remove_reference<T>::type* type;
};
|
Exemplo
| Esta seção está incompleta Motivo: sem exemplo |
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) |
remove ponteiro do tipo de dado Original: removes pointer from 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) |