35 #ifndef _BLAZE_UTIL_POLICIES_LINEARGROWTH_H_
36 #define _BLAZE_UTIL_POLICIES_LINEARGROWTH_H_
62 template<
size_t Growth >
68 inline size_t operator()(
size_t oldSize,
size_t minSize )
const;
112 template<
size_t Growth >
115 const size_t needed( max<size_t>( old*Growth, minimum ) );
116 return ( ( needed )?( 4 * ( (needed-1)/4+1 ) ):( 0 ) );
Header file for mathematical functions.
Linear growth policy class.The LinearGrowth policy class implements a linear growth strategy...
Definition: LinearGrowth.h:63
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: LinearGrowth.h:113
Header file for basic type definitions.