Partager via


rts_alloc::allocate

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

See Also

Reference

rts_alloc Class