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. |
| Defined in header <scoped_allocator>
|
||
| pointer allocate( size_type n ); |
(1) | (ya que C + +11) |
| pointer allocate( size_type n, const_void_pointer hint ); |
(2) | (ya que C + +11) |
Usa el asignador externo para asignar el almacenamiento sin inicializar, llamando 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.
Usa el asignador externo para asignar el almacenamiento sin inicializar con la sugerencia localidad de memoria suministrada, llamando 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.
[editar] Parámetros
| n | - | el número de objetos a asignar almacenamiento para
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 | - | puntero a una ubicación de memoria cercano
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. |
[editar] Valor de retorno
El puntero para el almacenamiento asignado
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.
[editar] Ver también
| asigna almacenamiento sin inicializar 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. (miembro público of std::allocator función)
| |
| [estático] |
asigna almacenamiento sin inicializar utilizando el asignador 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. (miembro estático público of std::allocator_traits función)
|