Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.18 KB

get_largest_available_block_in_pool.rst

File metadata and controls

31 lines (24 loc) · 1.18 KB

Determining the Largest Block of Available Memory in Pool

The umpire::strategy::QuickPool provides a umpire::strategy::QuickPool::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