A heuristic for automatically resizing a partition. More...
| Public Member Functions | |
| policy (std::size_t m=0, std::size_t e=0, float l=0, float h=1, float s=0) | |
| Specify a policy. | |
A heuristic for automatically resizing a partition.
Each new size is derived from the current size and amount of it used.
| policy | ( | std::size_t | m = 0, | 
| std::size_t | e = 0, | ||
| float | l = 0, | ||
| float | h = 1, | ||
| float | s = 0 ) | 
Specify a policy.
The defaults always maintain the current size. The floating-point parameters control geometric reallocation.
| m | the minimum size to use | 
| e | the minimum extra space to reserve | 
| l | fill fraction threshold for shrinking the size | 
| h | fill fraction threshold for increasing the size | 
| s | hysteresis control on [0,1]: larger values reallocate more frequently for monotonic size changes but less frequently for oscillatory ones |