3#include "detail/EnumerateDetail.h"
12template<
class T, std::invocable<const T&> UnaryOperation>
13auto Transform(
const std::vector<T>& container, UnaryOperation op)
15 using transformed_t = std::remove_cvref_t<std::invoke_result_t<UnaryOperation, const T&>>;
16 auto out = std::vector<transformed_t>{};
17 out.reserve(container.size());
18 std::transform(std::cbegin(container), std::cend(container), std::back_inserter(out), op);
23inline detail::enumerate_view_fn Enumerate;