De cppreference.com.
Bibliothèque de conteneurs
La bibliothèque Containers est une collection générique de modèles de classe et des algorithmes qui permettent aux programmeurs d'implémenter facilement des structures de données telles que les files d'attente, des listes et des piles. Il existe trois classes de conteneurs - conteneurs, conteneurs de séquences associatives et non ordonnées conteneurs associatifs - dont chacune est conçue pour prendre en charge différents des opérations .
Original:
The Containers library is a generic collection of class templates and algorithms that allow programmers to easily implement common data structures like queues, lists and stacks. There are three classes of containers -- sequence containers, associative containers, and unordered associative containers -- each of which is designed to support a different set of operations.
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
Le conteneur gère l'espace de stockage alloué pour ses éléments et fournit des fonctions membres pour y accéder, soit directement, soit par l'intermédiaire d'itérateurs (objets ayant des propriétés similaires aux pointeurs) .
Original:
The container manages the storage space that is allocated for its elements and provides member functions to access them, either directly or through iterators (objects with similar properties to pointers).
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
La plupart des contenants sont au moins des fonctions membres plusieurs points en commun, et fonctionnalités d'actions. Quel est le meilleur récipient pour l'application particulière dépend non seulement de la fonctionnalité offerte, mais aussi sur son efficacité pour différentes charges de travail .
Original:
Most containers have at least several member functions in common, and share functionalities. Which container is the best for the particular application depends not only on the offered functionality, but also on its efficiency for different workloads.
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
[modifier] Conteneurs de séquences
Les conteneurs de séquences implémentent des structures de données qui peuvent être accédées de manière séquentielle.
|
|
|
|
statique arrangement contigu Original: static contiguous array 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) [edit]
|
|
|
|
|
dynamique arrangement contigu Original: dynamic contiguous array 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) [edit]
|
|
|
|
|
amphidrome file d'attente Original: double-ended queue 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) [edit]
|
|
|
|
|
liste simplement chaînée Original: singly-linked list 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) [edit]
|
|
|
|
|
doublement chaînée liste Original: doubly-linked list 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) [edit]
|
[modifier] Conteneurs associatifs
Ces conteneurs associatifs implémentent des structures de données triées avec une recherche rapide (complexité O(log n)).
|
|
|
|
collection de clés uniques, triées par les clés Original: collection of unique keys, sorted by keys 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) [edit]
|
|
|
|
|
collection de paires clé-valeur, triées par les clés, les clés sont uniques Original: collection of key-value pairs, sorted by keys, keys are unique 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) [edit]
|
|
|
|
|
collection of keys, sorted by keys (classe générique) [edit]
|
|
|
|
|
collection de paires clé-valeur, triées par les clés Original: collection of key-value pairs, sorted by keys 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) [edit]
|
[modifier] Conteneurs associatifs non-ordonnés
Ces conteneurs associatifs implémentent des structures de données non-triées (hachées) avec une recherche rapide (O(1) amorti, O(n) dans le pire des cas).
|
|
|
|
collection de clés uniques, hachés par les touches Original: collection of unique keys, hashed by keys 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) [edit]
|
|
|
|
|
collection de paires clé-valeur, hachés par les touches, les touches sont uniques Original: collection of key-value pairs, hashed by keys, keys are unique 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) [edit]
|
|
|
|
|
collection de clés, hachés par les touches Original: collection of keys, hashed by keys 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) [edit]
|
|
|
|
|
collection de paires clé-valeur, hachés par les touches Original: collection of key-value pairs, hashed by keys 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) [edit]
|
[modifier] Adaptateurs de conteneurs
Les adaptateurs de conteneurs fournissent une interface différente pour les conteneurs séquentiels.
|
|
|
|
adapte un récipient pour fournir pile (LIFO structure de données) Original: adapts a container to provide stack (LIFO data structure) 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) [edit]
|
|
|
|
|
adapte un récipient pour fournir la file d'attente (FIFO structure de données) Original: adapts a container to provide queue (FIFO data structure) 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) [edit]
|
|
|
|
|
adapte un récipient pour fournir file d'attente prioritaire Original: adapts a container to provide priority queue 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) [edit]
|
[modifier] Table de fonctions membres
|
|
- fonctions présentes en C++03
|
|
|
- fonctions présentes depuis C++11
|
|
|
Conteneurs séquentiels
|
Conteneurs associatifs
|
Conteneurs associatifs non-ordonnés
|
Adaptateurs de conteneurs
|
| Entêtes
|
<array>
|
<vector>
|
<deque>
|
<forward_list>
|
<list>
|
<set>
|
<map>
|
<unordered_set>
|
<unordered_map>
|
<stack>
|
<queue>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(implicit)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(implicit)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(implicit)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
N/A
|
|
|
|
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
| Itérateurs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
N/A
|
N/A
|
N/A
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
N/A
|
N/A
|
N/A
|
|
|
|
|
|
N/A
|
|
|
|
|
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
|
|
|
|
|
N/A
|
|
|
|
|
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
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