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

Function UnwrapOrRaise

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

Source from the content-addressed store, hash-verified

143
144template <typename T>
145Result<std::vector<T>> UnwrapOrRaise(std::vector<Result<T>>&& results) {
146 std::vector<T> out;
147 out.reserve(results.size());
148 for (auto&& result : results) {
149 if (!result.ok()) {
150 return result.status();
151 }
152 out.push_back(result.MoveValueUnsafe());
153 }
154 return out;
155}
156
157template <typename T>
158Result<std::vector<T>> UnwrapOrRaise(const std::vector<Result<T>>& results) {

Callers 2

ParallelForAsyncFunction · 0.85
TESTFunction · 0.85

Calls 7

push_backMethod · 0.80
MoveValueUnsafeMethod · 0.80
ValueUnsafeMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
okMethod · 0.45
statusMethod · 0.45

Tested by 1

TESTFunction · 0.68