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

Function MaybeTransform

cpp/src/arrow/util/algorithm.h:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24template <typename InputIterator, typename OutputIterator, typename UnaryOperation>
25Status MaybeTransform(InputIterator first, InputIterator last, OutputIterator out,
26 UnaryOperation unary_op) {
27 for (; first != last; ++first, (void)++out) {
28 ARROW_ASSIGN_OR_RAISE(*out, unary_op(*first));
29 }
30 return Status::OK();
31}
32
33} // namespace arrow

Callers 1

MaybeMapVectorFunction · 0.85

Calls 2

ARROW_ASSIGN_OR_RAISEFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected