std::scoped_allocator_adaptor::allocate
De cppreference.com.
|
|
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. |
| Défini dans l'entête <scoped_allocator>
|
||
| pointer allocate( size_type n ); |
(1) | (depuis C++11) |
| pointer allocate( size_type n, const_void_pointer hint ); |
(2) | (depuis C++11) |
Utilise l'allocateur extérieur pour allouer de la mémoire non initialisée en appelant std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n)
2) Original:
Uses the outer allocator to allocate uninitialized storage, by calling std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n)
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.
Utilise l'allocateur extérieur pour allouer de la mémoire non initialisée avec l'indicateur localité mémoire fournie, en appelant std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n, hint)
Original:
Uses the outer allocator to allocate uninitialized storage with the memory locality hint provided, by calling std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n, hint)
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.
[modifier] Paramètres
| n | - | le nombre d'objets à allouer de la mémoire pour
Original: the number of objects to allocate storage for The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| hint | - | pointeur vers un emplacement de mémoire voisine
Original: pointer to a nearby memory location The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier] Retourne la valeur
Le pointeur vers l'emplacement alloué
Original:
The pointer to the allocated 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.
[modifier] Voir aussi
| alloue non initialisée stockage Original: allocates 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 membre publique de std::allocator)
| |
| [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
alloue non initialisée stockage à l'aide de l'allocateur Original: allocates uninitialized storage using the allocator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique statique de std::allocator_traits)
|