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

Method ToResult

cpp/src/arrow/util/functional.h:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29struct Empty {
30 static Result<Empty> ToResult(Status s) {
31 if (ARROW_PREDICT_TRUE(s.ok())) {
32 return Empty{};
33 }
34 return s;
35 }
36};
37
38/// A type erased callable object which may only be invoked once.

Callers

nothing calls this directly

Calls 1

okMethod · 0.45

Tested by

no test coverage detected