2011-04-19から1日間の記事一覧

Boost.Accumulatorsの動き

C++

Boost.Accumulatorsの動きを把握するためのコードを書きました。 #include <iostream> #include <limits> #include <boost/accumulators/accumulators.hpp> #include <boost/accumulators/statistics.hpp> using namespace boost::accumulators; struct integer { int x; integer() : x(0) {} integer(int x) : x(x) {} integer& operator+=(inte…</boost/accumulators/statistics.hpp></boost/accumulators/accumulators.hpp></limits></iostream>