std::tuple_element<std::pair>
Da 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. |
| Defined in header <utility>
|
||
| template< class T1, class T2 > struct tuple_element<0, std::pair<T1,T2> >; |
(1) | (a partir do C++ 11) |
| template< class T1, class T2 > struct tuple_element<1, std::pair<T1,T2> >; |
(2) | (a partir do C++ 11) |
As especializações parciais de std::tuple_element para pares de fornecer uma maneira de tempo de compilação para obter os tipos de elementos do par, usando-tupla como sintaxe.
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.
[editar] Tipos de membro
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. | |
| Tipo de membro
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. | |
| Tipo de membro
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
|
[editar] Exemplo
| This section is incomplete Reason: no example |
[editar] Veja também
| obtém o tipo do elemento especificado 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. (especialização modelo. classe) | |
| obtém o tipo dos elementos 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. (especialização modelo. classe) | |
| (C++11) |
obtém o tamanho de um 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. (especialização modelo. classe) |