Scalable Memory Pools#
Note
To enable this feature, set the TBB_PREVIEW_MEMORY_POOL macro to 1.
Memory pools allocate and free memory from a specified region or an underlying allocator using
thread-safe, scalable operations. The  following table summarizes the Memory Pool named requirement.
Here, P represents an instance of the memory pool class.
| Pseudo-Signature | Semantics | 
|---|---|
| 
 | Destructor. Frees all the allocated memory. | 
| 
 | Frees all the allocated memory. | 
| 
 | Returns a pointer to  | 
| 
 | Frees the memory object specified via  | 
| 
 | Reallocates the memory object pointed by  | 
Model Types
The memory_pool template class and the fixed_pool class meet the Memory Pool named requirement.
