std::remove_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. |
Déclaré dans l'en-tête <type_traits>
|
||
template< class T > struct remove_pointer; |
(depuis C++11) | |
Fournit la
type
membre typedef qui est le type pointé par T
, ou, si T
n'est pas un pointeur, alors type
est le même que T
.Original:
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
.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.
Sommaire |
[modifier] Types de membres
Nom
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
|
le type pointé par
T ou T si ce n'est pas un pointeurOriginal: the type pointed to by T or T if it's not a pointerThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier] Mise en œuvre possible
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;}; |
[modifier] Exemple
This section is incomplete Reason: no example |
[modifier] Voir aussi
(C++11) |
vérifie si un type est un type pointeur 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. (classe générique) |
(C++11) |
ajoute pointeur vers le type donné 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. (classe générique) |