| 23 | |
| 24 | template <typename InputIterator, typename OutputIterator, typename UnaryOperation> |
| 25 | Status 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 |
no test coverage detected