std::allocator_traits - cppreference.com
Da cppreference.com.
|
|
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. |
<metanoindex/>
<tbody> </tbody>
| Elemento definito nell'header <memory> |
||
|
|
(dal C++11) | |
Il modello di classe allocator_traits fornisce il modo standard per accedere alle varie proprietà di allocatore. I contenitori standard e altri standard di componenti di libreria di accesso allocatori attraverso questo modello, che consente di utilizzare qualsiasi tipo di classe come un allocatore, fino a quando la specializzazione fornito dall'utente di allocator_traits implementa tutte le funzionalità necessarie.
Original:
The allocator_traits class template provides the standardized way to access various properties of allocators. The standard containers and other standard library components access allocators through this template, which makes it possible to use any class type as an allocator, as long as the user-provided specialization of allocator_traits implements all required functionality.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
L', di default non specialistico, allocator_traits contiene i seguenti membri:
Original:
The default, non-specialized, allocator_traits contains the following members:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Membri tipi
Tipo Original: Type The text has been machine-translated via Google Translate. |
Definition |
allocator_type
|
Alloc
|
value_type
|
Alloc::value_type
|
pointer
|
Original:
The text has been machine-translated via Google Translate. |
const_pointer
|
Original:
The text has been machine-translated via Google Translate. |
void_pointer
|
Original:
The text has been machine-translated via Google Translate. |
const_void_pointer
|
Original:
The text has been machine-translated via Google Translate. |
difference_type
|
Original:
The text has been machine-translated via Google Translate. |
size_type
|
Original:
The text has been machine-translated via Google Translate. |
propagate_on_container_copy_assignment
|
Original:
The text has been machine-translated via Google Translate. |
propagate_on_container_move_assignment
|
Original:
The text has been machine-translated via Google Translate. |
propagate_on_container_swap
|
Original:
The text has been machine-translated via Google Translate. |
Membri alias modelli
Tipo Original: Type The text has been machine-translated via Google Translate. |
Definition |
rebind_alloc<T>
|
Original:
The text has been machine-translated via Google Translate. |
rebind_traits<T>
|
std::allocator_traits<rebind_alloc<T>>
|
Membri funzioni
[statico] |
alloca memoria non inizializzata utilizzando l'allocatore Original: allocates uninitialized storage using the allocator The text has been machine-translated via Google Translate. (metodo pubblico statico) [modifica] |
[statico] |
dealloca di archiviazione utilizzando l'allocatore Original: deallocates storage using the allocator The text has been machine-translated via Google Translate. (metodo pubblico statico) [modifica] |
[statico] |
costruisce un oggetto nella memoria allocata Original: constructs an object in the allocated storage The text has been machine-translated via Google Translate. (funzione di modello) [modifica] |
[statico] |
distrugge un oggetto memorizzato nella memoria allocata Original: destructs an object stored in the allocated storage The text has been machine-translated via Google Translate. (funzione di modello) [modifica] |
[statico] |
restituisce la dimensione massima oggetto supportato dalla allocatore Original: returns the maximum object size supported by the allocator The text has been machine-translated via Google Translate. (metodo pubblico statico) [modifica] |
ottiene l'allocatore da usare dopo la copia di un contenitore standard Original: obtains the allocator to use after copying a standard container The text has been machine-translated via Google Translate. (metodo pubblico statico) [modifica] | |
Vedi anche
| the default allocator (classe template) [modifica] | |
(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. (classe template) [modifica] |
(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. (classe template) [modifica] |