Containers library
Aus cppreference.com
< cpp
[] |
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. |
Die Container-Bibliothek ist eine generische Auflistung von Klassen-Templates und Algorithmen, die Programmierern die einfache Implementierung gemeinsamen Datenstrukturen wie Warteschlangen, Listen und Stacks ermglichen. Es gibt drei Arten von Behltnissen - Sequenz Container, assoziative Container und ungeordnete assoziative Container - von denen jeder entworfen, um eine andere Gruppe von Operationen untersttzt wird .
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.
You can help to correct and verify the translation. Click here for instructions.
Der Behlter verwaltet den Speicherplatz, der fr seine Elemente zugeordnet ist und stellt Elementfunktionen auf sie zuzugreifen, entweder direkt oder durch Iteratoren (Objekte mit hnlichen Eigenschaften wie Zeigern) .
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.
You can help to correct and verify the translation. Click here for instructions.
Die meisten Container mindestens mehrere Member-Funktionen gemeinsam, und Aktien-Funktionalitten. Welche Behlter ist die beste fr die jeweilige Anwendung hngt nicht nur von der angebotenen Funktionalitten, sondern auch auf ihre Effizienz fr unterschiedliche Workloads .
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.
You can help to correct and verify the translation. Click here for instructions.
Sequence Container
Sequence Container implementieren Datenstrukturen, die nacheinander aufgerufen werden knnen .
Original:
Sequence containers implement data structures which can be accessed sequentially.
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.
(seit C++11) |
statische zusammenhngende Array 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. (Klassen-Template) |
dynamischen zusammenhngende Array 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. (Klassen-Template) | |
double-ended Queue 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. (Klassen-Template) | |
(seit C++11) |
einfach verkettete Liste (Klassen-Template) |
| doppelt verkettete Liste (Klassen-Template) | |
Assoziative Container
Assoziative Container implementieren sortierten Daten Strukturen, die schnell durchsucht werden (O(log n) Komplexitt) kann .
Original:
Associative containers implement sorted data structures that can be quickly searched (O(log n) complexity).
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.
Sammlung von einzigartigen Schlssel, durch Schlssel sortiert 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. (Klassen-Template) | |
| Auflistung von Schlssel-Wert-Paaren, nach Schlsseln sortiert, die Schlssel sind eindeutig (Klassen-Template) | |
| collection of keys, sorted by keys (Klassen-Template) | |
Auflistung von Schlssel-Wert-Paaren, durch Schlssel sortiert 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. (Klassen-Template) | |
Ungeordnete assoziativen Containern
Assoziative Container implementieren unsortiert (Hash) Datenstrukturen, die schnell durchsucht werden (O(1) abgeschrieben, O(n) Worst-Case-Komplexitt) kann .
Original:
Associative containers implement unsorted (hashed) data structures that can be quickly searched (O(1) amortized, O(n) worst-case complexity).
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.
(seit C++11) |
Sammlung von einzigartigen Schlssel, durch Schlssel gehasht 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. (Klassen-Template) |
(seit C++11) |
Auflistung von Schlssel-Wert-Paaren, gehasht durch Schlssel, die Schlssel sind eindeutig 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. (Klassen-Template) |
(seit C++11) |
Sammlung von Schlsseln, mit den Tasten Hash 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. (Klassen-Template) |
(seit C++11) |
Auflistung von Schlssel-Wert-Paaren, durch Schlssel gehasht 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. (Klassen-Template) |
Behlter Adaptern
Container-Adapter bieten eine andere Schnittstelle fr sequentielle Container .
Original:
Container adaptors provide a different interface for sequential containers.
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.
passt einen Container Stack (LIFO-Datenstruktur) bieten 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. (Klassen-Template) | |
passt einen Behlter zur Warteschlange (FIFO Datenstruktur) bereitzustellen 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. (Klassen-Template) | |
passt einen Container Priorittswarteschlange bieten 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. (Klassen-Template) | |
Member-Funktions-Tabelle
| - functions present in C++03 | |
| - functions present since C++11 |
| Sequence containers | Associative containers | Unordered associative containers | Container adaptors | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Headers | <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 | |||||||||||||||||||||||||||||
| Iterators |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 | |||||||||||||||||||||||||||||
| Element access |
|
|
|
|
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 | |||||||||||||||||||||||||||||
|
|
|
|
|
|
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 | |||||||||||||||||||||||||||||
| Capacity |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||
|
|
|
|
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 | 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 | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | |||||||||||||||||||||||||||||
| Modifiers |
|
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 | 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 | 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 | 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 | N/A | N/A | N/A | N/A |
|
N/A |
| |||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||||||||||
| List operations |
|
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 | 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 | 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 | 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 | 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 | |||||||||||||||||||||||||||||
| Lookup |
|
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 | 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 | N/A |
|
|
|
|
|
|
|
|
N/A | N/A | N/A | |||||||||||||||||||||||||||||
| Observers |
|
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 | 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 | N/A |
|
|
|
|
N/A | N/A | N/A | |||||||||||||||||||||||||||||
| Allocator |
|
N/A |
|
|
|
|
|
|
|
|
|
|
|
|
N/A | N/A | N/A | ||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||
| Sequence containers | Associative containers | Unordered associative containers | Container adaptors | ||||||||||||||||||||||||||||||||||||||||||