std::tuple_element<div class="t-tr-text"><std::tuple><div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig"><std::tuple></div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div>
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>
| Elemento definito nell'header <tuple> |
||
|
|
(1) | (dal C++11) |
|
|
(2) | (dal C++11) |
|
|
(3) | (dal C++11) |
|
|
(4) | (dal C++11) |
|
|
(5) | (dal C++11) |
Fornisce di compilazione tipo di accesso indicizzato ai tipi di elementi della tupla.
Original:
Provides compile-type indexed access to the types of the elements of the tuple.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Membri tipi
Membro tipo Original: Member type The text has been machine-translated via Google Translate. |
Definition |
| type | il tipo di elemento Original: the type of The text has been machine-translated via Google Translate. |
Possibile implementazione
template< std::size_t I, class T > struct tuple_element; // recursive case template<std::size_t I, class Head, class... Tail > struct tuple_element<I, std::tuple<Head, Tail...>> : std::tuple_element<I-1, std::tuple<Tail...>> { }; // base case template< class Head, class... Tail > struct tuple_element<0, std::tuple<Head, Tail...>> { typedef Head type; };
Esempio
Vedi anche
ottiene il tipo di elementi di Original: obtains the type of the elements of The text has been machine-translated via Google Translate. (classe modello di specializzazione) [modifica] | |
ottiene il tipo di elementi di Original: obtains the type of the elements of The text has been machine-translated via Google Translate. (classe modello di specializzazione) [modifica] | |