std::tuple_element<std::pair>
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>| Déclaré dans l'en-tête <utility>
|
||
template< class T1, class T2 > struct tuple_element<0, std::pair<T1,T2> >; |
(1) | (depuis C++11) |
template< class T1, class T2 > struct tuple_element<1, std::pair<T1,T2> >; |
(2) | (depuis C++11) |
Les spécialisations partielles de
std::tuple_element pour les paires de fournir un moyen de compilation pour obtenir les types d'éléments de la paire, en utilisant une syntaxe tuple .Original:
The partial specializations of
std::tuple_element for pairs provide a compile-time way to obtain the types of the pair's elements, using tuple-like syntax.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.
Types de membres
Original: First version The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Type du membre | Définition |
type
|
T1
|
Original: Second version The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Type du membre | Définition |
type
|
T2
|
Exemple
| This section is incomplete Reason: no example |
Voir aussi
obtient le type de l'élément spécifié Original: obtains the type of the specified element 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 spécialisée) | |
obtient le type des éléments de array Original: obtains the type of the elements of array 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 spécialisée) | |
(C++11) |
obtient la taille d'un pair Original: obtains the size of a pair 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 spécialisée) |