3 #include "utilities/aligned/vector.h" 9 template <
typename It,
typename Callback>
10 auto map_to_vector(It b, It e,
const Callback &callback) {
11 using ReturnType = std::decay_t<decltype(
12 std::declval<Callback>()(*std::declval<It>()))>;
13 aligned::vector<ReturnType> ret;
14 ret.reserve(std::distance(b, e));
15 std::transform(b, e, std::back_inserter(ret), callback);
Definition: allocator.h:6