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

Method ValueOr

cpp/src/arrow/result.h:373–378  ·  view source on GitHub ↗

Move and return the internally stored value or alternative if an error is stored.

Source from the content-addressed store, hash-verified

371
372 /// Move and return the internally stored value or alternative if an error is stored.
373 T ValueOr(T alternative) && {
374 if (!ok()) {
375 return alternative;
376 }
377 return MoveValueUnsafe();
378 }
379
380 /// Return a copy of the internally stored value or alternative if an error is stored.
381 T ValueOr(T alternative) const& {

Callers 15

TESTFunction · 0.80
public_api_test.ccFile · 0.80
DoInspectMethod · 0.80
DoGetStatementMethod · 0.80
GetConnectionStringMethod · 0.80
CreateUnicodeTableMethod · 0.80
DropUnicodeTableMethod · 0.80
PostLastInstallerErrorFunction · 0.80
DisplayConnectionWindowFunction · 0.80
ConfigDSNWFunction · 0.80
GetColumnDisplaySizeMethod · 0.80

Calls 1

okFunction · 0.85

Tested by 4

TESTFunction · 0.64
GetConnectionStringMethod · 0.64
CreateUnicodeTableMethod · 0.64
DropUnicodeTableMethod · 0.64