35 #ifndef _BLAZE_UTIL_POLICIES_CONSTANTGROWTH_H_
36 #define _BLAZE_UTIL_POLICIES_CONSTANTGROWTH_H_
63 template<
size_t Growth >
69 inline size_t operator()(
size_t oldSize,
size_t minSize )
const;
102 template<
size_t Growth >
105 const size_t needed( max<size_t>( old+Growth, minimum ) );
106 return ( ( needed )?( 4 * ( (needed-1)/4+1 ) ):( 0 ) );
Header file for mathematical 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. ...
Definition: ConstantGrowth.h:103
Constant growth policy class.The ConstantGrowth policy class implements a constant growth strategy...
Definition: ConstantGrowth.h:64
Header file for basic type definitions.