Dynamic memory management
Da cppreference.com.
< cpp
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
[modifica] Puntatori intelligenti
Puntatori intelligenti consentono automatico, sicuro rispetto alle eccezioni, gestione degli oggetti durata.
Original:
Smart pointers enable automatic, exception-safe, object lifetime management.
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.
| Definizione nell'header
<memory> | |
Original: Pointer categories The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| (C++11) |
puntatore intelligente con la semantica degli oggetti di proprietà uniche 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. (classe template) |
| (C++11) |
smart pointer with shared object ownership semantics (classe template) |
| (C++11) |
riferimento debole a un oggetto gestito da 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 template) |
| (deprecato) |
puntatore intelligente con semantica rigida proprietà degli oggetti 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 template) |
Original: Helper classes The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| (C++11) |
fornisce di tipo misto proprietario basato su ordinamento di puntatori condivisi e debole 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 template) |
| (C++11) |
consente un oggetto per creare un shared_ptr riferisce a se stessa 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. (classe template) |
| (C++11) |
Eccezione generata quando si accede a un weak_ptr che si riferisce ad oggetto già distrutto 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. (classe) |
| (C++11) |
predefinito deleter per 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. (classe template) |
[modifica] Allocatori
Allocators sono modelli di classi che incapsulano strategia di allocazione della memoria. Questo permette contenitori generici di separare la gestione della memoria dei dati stessi.
Original:
Allocators are class templates encapsulating memory allocation strategy. This allows generic containers to decouple memory management from the data itself.
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.
| Definizione nell'header
<memory> | |
| the default allocator (classe template) | |
| (C++11) |
fornisce informazioni sui tipi di allocatore 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. (classe template) |
| (C++11) |
tipo di tag utilizzato per selezionare allocatore-aware overload del costruttore 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 oggetto di std::allocator_arg_t tipo usato per selezionare allocatore-aware costruttori 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. (costante) |
| (C++11) |
controlla se il tipo specificato supporta usi-allocatore di costruzione 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 template) |
| Definizione nell'header
<scoped_allocator> | |
| (C++11) |
implementa multilivello allocatore per contenitori multi-livello 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 template) |
[modifica] Non inizializzata stoccaggio
Programmi di utilità sono forniti diversi per creare e accedere storage raw
Original:
Several utilities are provided to create and access raw storage
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.
| Definizione nell'header
<memory> | |
| copia una serie di oggetti in una zona di memoria non inizializzata 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. (funzione di modello) | |
| (C++11) |
copia un numero di oggetti da una zona di memoria non inizializzata 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. (funzione di modello) |
| copia di un oggetto ad una zona di memoria non inizializzata 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. (funzione di modello) | |
| copia di un oggetto ad una zona di memoria non inizializzata 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. (funzione di modello) | |
| un iteratore che permette di algoritmi standard per memorizzare i risultati in memoria non inizializzata 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 template) | |
| ottiene stoccaggio non inizializzata 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. (funzione di modello) | |
| libera di memorizzazione non inizializzato 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. (funzione di modello) | |
[modifica] Garbage collector supporto
| Definizione nell'header
<memory> | |
| (C++11) |
dichiara che un oggetto non può essere riciclato 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. (funzione) |
| (C++11) |
dichiara che un oggetto può essere riciclato 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. (funzione di modello) |
| (C++11) |
dichiara che un'area di memoria non contiene puntatori rintracciabili 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. (funzione) |
| (C++11) |
annulla l'effetto del 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. (funzione) |
| (C++11) |
elenca i modelli di sicurezza del puntatore 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) |
restituisce l'attuale modello di sicurezza puntatore 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. (funzione) |
[modifica] Varie
| Definizione nell'header
<memory> | |
| (C++11) |
fornisce informazioni su come i tipi di puntatore 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 template) |
| (C++11) |
ottiene l'indirizzo reale di un oggetto, anche se l'operatore &' è sovraccarico 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. (funzione di modello) |
| (C++11) |
allinea un puntatore in un buffer 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. (funzione) |
[modifica] C-stile di gestione della memoria
Include ad esempio 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.
[modifica] Basso livello di gestione della memoria
Include ad esempio
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.