|
NB_TYPE | nb |
|
INCREMENTABLE | value |
|
◆ average()
template<typename INCREMENTABLE , typename NB_TYPE >
template<typename NB_AVG_TYPE = NB_TYPE>
Returns the average. The template argument is the type for casting nb befor the division.
- Returns
- value/(NB_AVG_TYPE)nb;
◆ increment()
template<typename INCREMENTABLE , typename NB_TYPE >
◆ operator+=() [1/2]
template<typename INCREMENTABLE , typename NB_TYPE >
nb += a.nb; value += a.value;
◆ operator+=() [2/2]
template<typename INCREMENTABLE , typename NB_TYPE >
◆ operator=()
template<typename INCREMENTABLE , typename NB_TYPE >
nb = 1, value = v nb += 1; value += v;
The documentation for this struct was generated from the following file: