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

Function MakeErrorIterator

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

MakeFunctionIteratorFunction · 0.85
EndFunction · 0.70

Tested by

no test coverage detected