共用方式為


sync_per_thread::deallocate

Frees a specified number of objects from storage beginning at a specified position.

void deallocate(void* _Ptr, std::size_t _Count);

Parameters

Parameter

Description

_Ptr

A pointer to the first object to be deallocated from storage.

_Count

The number of objects to be deallocated from storage.

Remarks

The member function calls deallocate 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