The umpire::strategy::DynamicPool
provides a umpire::strategy::DynamicPool::getLargestAvailableBlock
that may be used to determine the size of the largest block currently available for allocation within the pool. To call this function, you must get the pointer to the umpire::strategy::AllocationStrategy
from the umpire::Allocator
:
../../../examples/cookbook/recipe_get_largest_available_block_in_pool.cpp
Once you have the pointer to the appropriate strategy, you can call the function:
../../../examples/cookbook/recipe_get_largest_available_block_in_pool.cpp
The complete example is included below:
../../../examples/cookbook/recipe_get_largest_available_block_in_pool.cpp