Espaces de noms
Variantes
Affichages
Actions

std::pair

De cppreference.com
< cpp‎ | utility
 
 
 
std::pair
Les fonctions membres
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pair::pair
pair::operator=
pair::swap
Tiers fonctions
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
make_pair
operator=
operator!=
operator<
operator<=
operator>
operator>=
std::swap
get (C++11)
Classes d'aide
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
tuple_size (C++11)
tuple_element (C++11)
 
Defined in header <utility>
template<

    class T1,
    class T2

> struct pair;

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 arguments
Original:
creates a pair object of type, defined by the argument types
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) [edit]
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) [edit]
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) [edit]
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) [edit]

[modifier] Classes d'aide

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) [edit]
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) [edit]