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

Function MakeErrorIterator

cpp/src/arrow/util/iterator.h:377–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375
376template <typename T>
377Iterator<T> MakeErrorIterator(Status s) {
378 return MakeFunctionIterator([s]() -> Result<T> {
379 ARROW_RETURN_NOT_OK(s);
380 return IterationTraits<T>::End();
381 });
382}
383
384/// \brief Simple iterator which yields the elements of a std::vector
385template <typename T>

Callers

nothing calls this directly

Calls 2

MakeFunctionIteratorFunction · 0.85
EndFunction · 0.70

Tested by

no test coverage detected