MCPcopy Create free account
hub / github.com/apache/arrow / MaybeMapVector

Function MaybeMapVector

cpp/src/arrow/util/vector.h:111–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109template <typename Fn, typename From = internal::call_traits::argument_type<0, Fn>,
110 typename To = typename internal::call_traits::return_type<Fn>::ValueType>
111Result<std::vector<To>> MaybeMapVector(Fn&& map, const std::vector<From>& source) {
112 std::vector<To> out;
113 out.reserve(source.size());
114 ARROW_RETURN_NOT_OK(MaybeTransform(source.begin(), source.end(),
115 std::back_inserter(out), std::forward<Fn>(map)));
116 return out;
117}
118
119template <typename Fn, typename From = internal::call_traits::argument_type<0, Fn>,
120 typename To = typename internal::call_traits::return_type<Fn>::ValueType>

Callers 1

TESTFunction · 0.85

Calls 5

MaybeTransformFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.68