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

Method Result

cpp/src/arrow/result.h:116–117  ·  view source on GitHub ↗

Constructs a Result object that contains a non-OK status. This constructor is marked `explicit` to prevent attempts to `return {}` from a function with a return type of, for example, `Result >`. While `return {}` seems like it would return an empty vector, it will actually invoke the default constructor of Result.

Source from the content-addressed store, hash-verified

114 /// an empty vector, it will actually invoke the default constructor of
115 /// Result.
116 explicit Result() noexcept // NOLINT(runtime/explicit)
117 : status_(internal::UninitializedResult()) {}
118
119 ~Result() noexcept { Destroy(); }
120

Callers 6

test_reprFunction · 0.80
test_eqFunction · 0.80
test_roundtrip_typesFunction · 0.80
do_actionMethod · 0.80
do_actionMethod · 0.80
do_actionMethod · 0.80

Calls 6

UninitializedResultFunction · 0.85
DieWithMessageFunction · 0.85
ValueUnsafeMethod · 0.80
MoveValueUnsafeMethod · 0.80
okMethod · 0.45
ToStringMethod · 0.45

Tested by 3

test_reprFunction · 0.64
test_eqFunction · 0.64
test_roundtrip_typesFunction · 0.64