Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Allocates a block of memory.
void *allocate(std::size_t _Count);
Parameters
Parameter |
Description |
|---|---|
_Count |
The number of elements in the array to be allocated. |
Return Value
A pointer to the allocated object.
Remarks
The member function returns caches[_IDX].allocate(_Count), where the index _IDX is determined by the requested block size _Count, or, if _Count is too large, it returns operator new(_Count).cache, which represents the cache object.
Requirements
Header: <allocators>
Namespace: stdext