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

Method ValueOrElse

cpp/src/arrow/result.h:391–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389 /// factory
390 template <typename G>
391 T ValueOrElse(G&& generate_alternative) && {
392 if (ok()) {
393 return MoveValueUnsafe();
394 }
395 return std::forward<G>(generate_alternative)();
396 }
397
398 /// Apply a function to the internally stored value to produce a new result or propagate
399 /// the stored error.

Callers 12

TESTFunction · 0.80
GetPrecisionMethod · 0.80
GetScaleMethod · 0.80
GetSchemaNameMethod · 0.80
GetCatalogNameMethod · 0.80
GetTableNameMethod · 0.80
GetBaseTableNameMethod · 0.80
GetLocalTypeNameMethod · 0.80
GetTypeNameMethod · 0.80
IsAutoUniqueMethod · 0.80
IsCaseSensitiveMethod · 0.80
IsSearchableMethod · 0.80

Calls 1

okFunction · 0.85

Tested by 1

TESTFunction · 0.64