11 #ifndef __MEAN_MODULE_HEADER
12 #define __MEAN_MODULE_HEADER
15 #include "../../util/mean_trait.hpp"
20 struct requirement<tag::mean> {
25 template<
typename T,
typename _base>
26 class module<T, tag::mean, _base>:
public _base {
40 return sum_ / base::count();
51 #endif //__MEAN_MODULE_HEADER
S & operator<<(S &os, oss_class< D, max_buf > const &arg)
Definition: serializer.hpp:158
Definition: module.hpp:33
void clear()
Definition: mean_module.hpp:42
ustd::conditional< detail::use_double_identifier< T >::value, double, T >::type type
Definition: mean_trait.hpp:44
Definition: meta_list.hpp:17
void operator<<(T const &in)
Definition: mean_module.hpp:34
module()
Definition: mean_module.hpp:31
mean_type mean() const
Definition: mean_module.hpp:39