std::tuple_element<std::pair>
Aus 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. |
definiert in Header <utility>
|
||
template< class T1, class T2 > struct tuple_element<0, std::pair<T1,T2> >; |
(1) | (seit C++11) |
template< class T1, class T2 > struct tuple_element<1, std::pair<T1,T2> >; |
(2) | (seit C++11) |
Die partiellen Spezialisierungen std::tuple_element für Paare eine Kompilierung Weg, um die Arten des Paares die Elemente zu erhalten, wobei Tupel-ähnliche Syntax .
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.
[Bearbeiten] Mitglied Typen
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. | |
Mitglied Typ
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
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. | |
Mitglied Typ
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
type
|
T2
|
[Bearbeiten] Beispiel
This section is incomplete Reason: no example |
[Bearbeiten] Siehe auch
erhält den Typ des angegebenen Elements 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. (class Template-Spezialisierung) | |
ermittelt die Art der Elemente der 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. (class Template-Spezialisierung) | |
(C++11) |
erhält die Größe eines 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. (class Template-Spezialisierung) |