A repository where I'll put experiments learning, proving or disproving things about C++. These experiments will feature measurements, use Tracy to show behavior, and generally have the goal of simplifying normal C++ usage.
 
 
 
 
 
c-plus-plus-dafuq/stats.cpp

10 lines
234 B

#include "stats.hpp"
#include <fmt/core.h>
void Stats::dump()
{
fmt::println("sum: {}, sumsq: {}, n: {}, "
"min: {}, max: {}, mean: {}, stddev: {}",
sum, sumsq, n, min, max, mean(),
stddev());
}