Share via


sync_per_thread::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.

Remarks

The member function returns the result of a call to cache::allocate(_Count) on the cache object belonging to the current thread. If no cache object has been allocated for the current thread, it first allocates one.

Requirements

Header: <allocators>

Namespace: stdext

See Also

Reference

sync_per_thread Class