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

Method Value

cpp/src/arrow/result.h:364–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362 template <typename U, typename E = typename std::enable_if<
363 std::is_constructible<U, T>::value>::type>
364 Status Value(U* out) && {
365 if (!ok()) {
366 return std::move(*this).status();
367 }
368 *out = U(MoveValueUnsafe());
369 return Status::OK();
370 }
371
372 /// Move and return the internally stored value or alternative if an error is stored.
373 T ValueOr(T alternative) && {

Calls 3

okFunction · 0.85
OKFunction · 0.70
statusMethod · 0.45

Tested by 15

TESTFunction · 0.36
SetUpMethod · 0.36
TYPED_TEST_PFunction · 0.36
SetUpMethod · 0.36
SetUpMethod · 0.36
SetUpMethod · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
GenerateInputDataMethod · 0.36
GetValuesMethod · 0.36
ReaderFromSinkMethod · 0.36