std::pair
De cppreference.com
| Defined in header <utility>
|
||
| template< class T1, |
||
std::pair est une structure générique qui fournit un moyen de stocker deux objets hétérogènes dans comme une seule entité.
Sommaire |
[modifier] Types de membres
| Types définis | Definition |
first_type
|
T1
|
second_type
|
T2
|
[modifier] Objets membres
| Nom | Type |
first
|
T1
|
second
|
T2
|
[modifier] Fonctions membres
| construit une nouvelle paire (fonction membre publique) | |
| affecte le contenu (fonction membre publique) | |
| (C++11) |
permute les contenus (fonction membre publique) |
[modifier] Fonctions annexes
| crée un objet de type pair, définie par le type des argumentsOriginal: 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. (fonction générique) | |
| compare lexicographiquement les valeurs de la paire 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. (fonction générique) | |
| (C++11) |
l'algorithme spécialisé 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. (fonction générique) |
| (C++11) |
accède à un élément d'un 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. (fonction générique) |
[modifier] Classes d'aide
| (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) |
| (C++11) |
obtient le type des éléments 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. (classe générique spécialisée) |

