Gestion dynamique de la mémoire
De cppreference.com
< cpp
Sommaire |
[modifier]Pointeurs intelligents
Les pointeurs intelligents permettent la gestion automatique et robuste de la durée de vie d'un objet.
Defined in header <memory> | |
Catégories de pointeurs | |
(C++11) | pointeur intelligent avec sémantique de propriétaire unique (classe générique) |
(C++11) | pointeur intelligent avec sémantique de propriétaires partagés (classe générique) |
(C++11) | référence faible à un objet géré par 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. (classe générique) |
(obsolète) | pointeur intelligent avec sémantique stricte propriété de l'objet 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. (classe générique) |
Classes d'aide | |
(C++11) | offre mixte de type propriétaire-base ordonnancement des pointeurs partagés et faible 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. (classe générique) |
(C++11) | permet à un objet de créer un shared_ptr faisant référence à lui-même (classe générique) |
(C++11) | Exception levée lorsque l'on accède à un weak_ptr qui se réfère à un objet détruit (classe) |
(C++11) | destructeur par défaut d'unique_ptr (classe générique) |
[modifier]Allocateurs
Les allocateurs sont des classes génériques encapsulant la stratégie d'allocation de mémoire. Cela permet de découpler les conteneurs génériques de gestion de la mémoire des données elles-mêmes.
Defined in header <memory> | |
l'allocateur par défaut Original: the default allocator 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) | |
(C++11) | fournit des informations sur les types d'allocateur (classe générique) |
(C++11) | type de variable utilisé pour sélectionner surcharges de constructeur allocateur-aware 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. (classe) |
(C++11) | un objet de std::allocator_arg_t type utilisé pour sélectionner allocateur-aware constructeurs 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) | vérifie si le type spécifié prend en charge les utilisations-allocateur de construction 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. (classe générique) |
Defined in header <scoped_allocator> | |
(C++11) | met en oeuvre plusieurs niveaux d'affectation de niveaux multiples récipients 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. (classe générique) |
[modifier]Allocation brute
Plusieurs utilitaires sont fournis pour créer et accéder au stockage brut.
Defined in header <memory> | |
Copie une série d'objets dans une zone non initialisée de la mémoire 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. (fonction générique) | |
(C++11) | copie un certain nombre d'objets dans une zone non initialisée de la mémoire 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. (fonction générique) |
copie un objet dans une zone non initialisée de la mémoire 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. (fonction générique) | |
copie un objet dans une zone non initialisée de la mémoire 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. (fonction générique) | |
un itérateur qui permet algorithmes standard pour stocker les résultats dans la mémoire non initialisée 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. (classe générique) | |
obtient de stockage non initialisée 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. (fonction générique) | |
libère de stockage non initialisée 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. (fonction générique) |
[modifier]Soutien garbage collector
Defined in header <memory> | |
(C++11) | déclare qu'un objet ne peut pas être recyclé 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. (fonction) |
(C++11) | déclare un objet peut être recyclé 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. (fonction générique) |
(C++11) | déclare qu'une zone mémoire ne contient pas de pointeurs traçables 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. (fonction) |
(C++11) | annule l'effet 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. (fonction) |
(C++11) | énumère les modèles de sécurité pointeur 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. (classe) |
(C++11) | renvoie le pointeur courant modèle de sécurité 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. (fonction) |
[modifier]Divers
Defined in header <memory> | |
(C++11) | fournit des informations sur les types de pointeur en forme 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. (classe générique) |
(C++11) | obtient l'adresse réelle d'un objet, même si l'opérateur & est surchargé 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. (fonction générique) |
(C++11) | aligne un pointeur dans un tampon 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. (fonction) |
[modifier]Gestion de la mémoire style C
Comprend, par exemple, std::malloc, std::free
[modifier]Gestion de la mémoire de bas niveau
Comprend, par exemple, operator new
, operator delete
, std::set_new_handler