auto h = make_histogram(
axis::regular<>(6, -1.0, 2.0, "x")
);
// fill histogram
auto data = { -10, -0.4, 1.1, 0.3, 1.3 };
std::for_each(data.begin(), data.end(), std::ref(h));
I would have to Google what std::ref does again, and then I have to understand why it is used, etc. The code is short and readable, but understanding it still takes time.