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

Method Map

cpp/src/arrow/result.h:401–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399 /// the stored error.
400 template <typename M>
401 typename EnsureResult<decltype(std::declval<M&&>()(std::declval<T&&>()))>::type Map(
402 M&& m) && {
403 if (!ok()) {
404 return std::move(*this).status();
405 }
406 return std::forward<M>(m)(MoveValueUnsafe());
407 }
408
409 /// Apply a function to the internally stored value to produce a new result or propagate
410 /// the stored error.

Callers 1

TESTFunction · 0.45

Calls 3

okFunction · 0.85
statusFunction · 0.85
statusMethod · 0.45

Tested by 1

TESTFunction · 0.36