boost::container::for_each
// In header: <boost/container/hub.hpp> template<typename T, typename Allocator, typename F> F for_each(const hub< T, Allocator > & x, F f);
Effects: Applies f to every element of x. Equivalent to for_each(x.cbegin(), x.cend(), std::ref(f)).
Returns: std::move(f).
Note: Potentially faster than range iteration thanks to internal unrolling and prefetching.