std::pair
Da cppreference.com
Definido no cabeçalho <utility> | ||
template< class T1, | ||
std::pair
é um modelo de estrutura que proporciona uma maneira de armazenar dois objectos heterogéneos como uma unidade única.Original:
std::pair
is a struct template that provides a way to store two heterogeneous objects as a single unit.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.
Índice |
[editar]Tipos de membro
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. | |
first_type | T1 |
second_type | T2 |
[editar]Objetos Membros
Nome do membro Original: Member name The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
first | T1 |
second | T2 |
[editar]Funções de membro
constrói novo par Original: constructs new pair The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) | |
atribui o conteúdo Original: assigns the contents The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) | |
(C++11) | Inverte o par Original: swaps the contents The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) |
[editar]Funções não-membros
cria um objeto do tipo pair , definido pelos tipos de argumentoOriginal: creates a pair object of type, defined by the argument typesThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de função) | |
lexicographically compara os valores do par Original: lexicographically compares the values in the pair The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de função) | |
(C++11) | o algoritmo especializado std::swap Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de função) |
(C++11) | acede a um elemento de um pair Original: accesses an element 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. (modelo de função) |
[editar]Classes auxiliares
(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) |
obtém o tipo dos elementos de pair Original: obtains the type of the elements of 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) |