sync_shared::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 locks the mutex, calls cache.allocate(_Count), unlocks the mutex, and returns the result of the earlier call to cache.allocate(_Count). cache represents the current cache object.

Requirements

Header: <allocators>

Namespace: stdext

See Also

Reference

sync_shared Class