Dynamic memory management
De cppreference.com
< cpp
Contenido |
[editar] Punteros inteligentes
Los punteros inteligentes permiten, de forma automática y segura de fallos, gestionar el tiempo de vida de los objetos.
Defined in header
<memory> | |
Categorías punteros | |
(C++11) |
puntero inteligente con el único objeto de propiedad semántica Original: smart pointer with unique object ownership semantics 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) |
(C++11) |
smart pointer with shared object ownership semantics (clase de plantilla) |
(C++11) |
débil referencia a un objeto administrado por std::shared_ptr Original: weak reference to an object managed by std::shared_ptr 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) |
(obsoleto) |
puntero inteligente con estrictas semántica de objetos de propiedad Original: smart pointer with strict object ownership semantics 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) |
Clases de ayuda | |
(C++11) |
ofrece de tipo mixto propietario basado ordenamiento de los punteros compartidos y débil Original: provides mixed-type owner-based ordering of shared and weak pointers 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) |
(C++11) |
permite que un objeto para crear una shared_ptr refiriéndose a sí mismo Original: allows an object to create a shared_ptr referring to itself 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) |
(C++11) |
Excepción que se produce cuando se accede a un weak_ptr que se refiere al objeto ya destruido Original: exception thrown when accessing a weak_ptr which refers to already destroyed object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase) |
(C++11) |
Deleter por defecto unique_ptr Original: default deleter for unique_ptr 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] Los asignadores
Los asignadores (allocators en inglés) son clases plantillas que encapsulan la estrategia de asignación de memoria. Esto le permite a los contenedores genéricos separar la gestión de la memoria de los datos por sí mismos.
Defined in header
<memory> | |
the default allocator (clase de plantilla) | |
(C++11) |
proporciona información sobre los tipos de asignador Original: provides information about allocator types 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) |
(C++11) |
tipo de variable utilizada para seleccionar conscientes asignador-sobrecargas del constructor Original: tag type used to select allocator-aware constructor overloads The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase) |
(C++11) |
un objeto de tipo std::allocator_arg_t utiliza para seleccionar conscientes asignador-constructores Original: an object of type std::allocator_arg_t used to select allocator-aware constructors The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante) |
(C++11) |
comprueba si el tipo especificado admite usos-asignador de construcción Original: checks if the specified type supports uses-allocator construction 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) |
Defined in header
<scoped_allocator> | |
(C++11) |
implementa varios niveles asignador de niveles múltiples recipientes Original: implements multi-level allocator for multi-level containers 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] Inicializar el almacenamiento
Se proporcionan varias utilidades para crear y tener acceso a almacenamiento en crudo
Defined in header
<memory> | |
copia un rango de objetos a una zona de memoria no inicializada Original: copies a range of objects to an uninitialized area of memory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) | |
(C++11) |
copia un número de objetos a un área de memoria no inicializada Original: copies a number of objects to an uninitialized area of memory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) |
copia un objeto a una zona de memoria no inicializada Original: copies an object to an uninitialized area of memory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) | |
copia un objeto a una zona de memoria no inicializada Original: copies an object to an uninitialized area of memory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) | |
un iterador que permite a los algoritmos estándar para almacenar los resultados en la memoria sin inicializar Original: an iterator that allows standard algorithms to store results in uninitialized memory 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) | |
Obtiene el almacenamiento sin inicializar Original: obtains uninitialized storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) | |
libera almacenamiento sin inicializar Original: frees uninitialized storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) |
[editar] Garbage soporte del colector
Defined in header
<memory> | |
(C++11) |
declara que un objeto no puede ser reciclado Original: declares that an object can not be recycled The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
(C++11) |
declara que un objeto puede ser reciclado Original: declares that an object can be recycled The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) |
(C++11) |
declara que una zona de memoria no contiene punteros rastreable Original: declares that a memory area does not contain traceable pointers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
(C++11) |
cancela el efecto de std::declare_no_pointers Original: cancels the effect of std::declare_no_pointers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
(C++11) |
Listas de modelos puntero de seguridad Original: lists pointer safety models The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase) |
(C++11) |
devuelve el puntero del modelo actual de seguridad Original: returns the current pointer safety model The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
[editar] Varios
Defined in header
<memory> | |
(C++11) |
proporciona información sobre como puntero tipos Original: provides information about pointer-like types 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) |
(C++11) |
Obtiene la dirección real de un objeto, incluso si el operador &' está sobrecargado Original: obtains actual address of an object, even if the & operator is overloaded The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) |
(C++11) |
alinea un puntero en un tampón Original: aligns a pointer in a buffer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
[editar] C-estilo de gestión de memoria
Incluye, por ejemplo, std::malloc, std::free
Original:
Includes e.g. std::malloc, std::free
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.
[editar] Bajo la gestión de memoria de nivel
Incluye, por ejemplo,
operator new
, operator delete
, std::set_new_handlerOriginal:
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.