std::scoped_allocator_adaptor::allocate
Aus 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. |
<metanoindex/>
<tbody> </tbody>| definiert in Header <scoped_allocator>
|
||
pointer allocate( size_type n ); |
(1) | (seit C++11) |
pointer allocate( size_type n, const_void_pointer hint ); |
(2) | (seit C++11) |
1)
Verwendet die äußeren allocator auf nicht initialisierte Speicher zuzuweisen, indem
std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n)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.
2)
Verwendet die äußeren allocator auf nicht initialisierte Speicher mit der Erinnerung Ortschaft Hinweis versehen, indem
std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n, hint) zuzuweisenOriginal:
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.
Parameter
| n | - | die Anzahl der Objekte, um Speicherplatz für zuzuteilen
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 | - | Zeiger auf eine Speicherstelle in der Nähe
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. |
Rückgabewert
Der Zeiger auf den reservierten Speicher
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.
Siehe auch
ordnet initialisierten Speicher 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. (öffentliche Elementfunktion of std::allocator)
| |
[statisch] |
ordnet initialisierten Speicher mit der Zuweisung 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. (public static Elementfunktion of std::allocator_traits)
|