boost::capy::recycling_memory_resource::allocate_fast
Allocate without virtual dispatch.
Description
A request larger than the largest size class (2048 bytes) bypasses the pools and goes straight to ::operator new.
The second parameter is the requested alignment, and it is ignored. Every block comes from ::operator new, so blocks carry the implementation's default new alignment and no more.
Complexity
Amortized constant. Now and then a call also hands this thread's idle cached blocks to the global pool, or releases them when it has no room.
A pooled block is rounded up to its size class, so it may be larger than requested.
Exceptions
Name |
Thrown on |
|
If the underlying |
Parameters
Name |
Description |
bytes |
The number of bytes to allocate. |
Created with MrDocs