All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
blaze::ConstantGrowth< Growth > Struct Template Reference

Constant growth policy class.The ConstantGrowth policy class implements a constant growth strategy. It can be customized for any purpose: the Growth template argument specifies the constant increase of the given size. More...

#include <ConstantGrowth.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...
 

Detailed Description

template<size_t Growth>
struct blaze::ConstantGrowth< Growth >

Constant growth policy class.

The ConstantGrowth policy class implements a constant growth strategy. It can be customized for any purpose: the Growth template argument specifies the constant increase of the given size.

Member Function Documentation

template<size_t Growth>
size_t blaze::ConstantGrowth< Growth >::operator() ( size_t  old,
size_t  minimum 
) const
inline

Returns a new size depending on the given old size and the required minimum size.

Parameters
oldThe old size.
minimumThe required minimum size.
Returns
The new size (at least the required minimum size).

The documentation for this struct was generated from the following file: