I am using boost::accumulator_set to compute the min, max and mean of some values.
Is there a way (perhaps a boost::accumulators::tag) to retrieve the last value that was fed to the accumulator? Something like boost::accumulators::last(my_acc)?
You could hack it using a rolling window size==1:
Live On Coliru
Print