|
Console Library 8.0.0
A header-only library that makes C++ simple
|
范围平均值变换器。 More...
#include <gextra.h>
Public Member Functions | |
| template<class Range> | |
| auto | operator() (Range r) const -> decltype(std::accumulate(r.begin(), r.end(), typename Range::value_type{})/r.size()) |
| 计算范围中所有元素的平均值。 | |
范围平均值变换器。
|
inline |
计算范围中所有元素的平均值。
| r | 输入范围。 |