![]() |
Linear growth policy class.The LinearGrowth policy class implements a linear growth strategy. It can be customized for any purpose: the Growth template argument specifies the factor of the size growth. More...
#include <LinearGrowth.h>
Public Member Functions | |
Utility functions | |
size_t | operator() (size_t oldSize, size_t minSize) const |
Returns a new size depending on the given old size and the required minimum size. More... | |
Linear growth policy class.
The LinearGrowth policy class implements a linear growth strategy. It can be customized for any purpose: the Growth template argument specifies the factor of the size growth.
|
inline |
Returns a new size depending on the given old size and the required minimum size.
old | The old size. |
minimum | The required minimum size. |