#pragma once #include namespace atlas::collection::detail { template void fill_with(Iter start, Iter end, F f) { std::for_each(start, end, [g = std::move(f)](auto& v) { v = g(); }); } }