Containers library
De 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. |
La biblioteca Containers es una colección genérica de plantillas de clase y algoritmos que permiten a los programadores implementar fácilmente las estructuras de datos comunes, como las colas, listas y pilas. Hay tres clases de contenedores - contenedores de secuencias, contenedores asociativos y desordenadas contenedores asociativos - cada uno de los cuales está diseñado para soportar un conjunto diferente de las operaciones .
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.
El contenedor gestiona el espacio de almacenamiento asignado para sus elementos y proporciona funciones miembro para acceder a ellos, ya sea directamente oa través de iteradores (objetos con propiedades similares a los punteros) .
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.
La mayoría de los contenedores tienen por lo menos varias funciones miembro en común, y funcionalidades de acciones. Qué contenedor es el mejor para la aplicación particular depende no sólo de la funcionalidad ofrecida, sino también de su eficiencia para diferentes cargas de trabajo .
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.
Contenido |
[editar] Contenedores de secuencias
Contenedores de secuencias implementar estructuras de datos que se puede acceder secuencialmente .
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.
| (ya que C + +11) |
array contiguo estática 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. (clase de plantilla) |
| array contiguo dinámico 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. (clase de plantilla) | |
| de doble punta de la cola 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. (clase de plantilla) | |
| (ya que C + +11) |
la lista simplemente enlazada 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. (clase de plantilla) |
| lista doblemente enlazada 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. (clase de plantilla) | |
[editar] Contenedores asociativos
Contenedores asociativos según implementar estructuras de datos que pueden ser rápidamente buscado (complejidad O(log n)) .
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.
| colección de claves únicas, ordenados por claves 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. (clase de plantilla) | |
| colección de pares de valores clave, ordenados por teclas, las teclas son únicos 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. (clase de plantilla) | |
| collection of keys, sorted by keys (clase de plantilla) | |
| colección de pares de clave-valor, ordenados por claves 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. (clase de plantilla) | |
[editar] Desordenada contenedores asociativos
Contenedores asociativos implementar sin ordenar (hash) estructuras de datos que pueden ser rápidamente buscado (O(1) amortizado, O(n) peor de los casos la complejidad) .
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.
| (ya que C + +11) |
colección de claves únicas, ordenados por claves 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. (clase de plantilla) |
| (ya que C + +11) |
colección de pares de clave-valor hash, ordenados por claves, las claves son únicas 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. (clase de plantilla) |
| (ya que C + +11) |
recogida de llaves, ordenados por claves 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. (clase de plantilla) |
| (ya que C + +11) |
colección de pares de clave-valor hash, ordenados por claves 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. (clase de plantilla) |
[editar] Adaptadores de contenedores
Adaptadores de Contenedores 'aseguran una interfaz diferente para contenedores secuenciales .
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.
| adapta un recipiente para proporcionar pila LIFO (estructura de datos) 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. (clase de plantilla) | |
| adapta un recipiente para proporcionar cola (FIFO estructura de datos) 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. (clase de plantilla) | |
| adapta un recipiente para proporcionar cola de prioridad 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. (clase de plantilla) | |
[editar] Miembro tabla de funciones
| - 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 | ||||||||||||||||||||||||||||||||||||||||||

