MCPcopy Create free account
hub / github.com/alibaba/zvec / unwrap_expected

Function unwrap_expected

src/binding/python/model/python_collection.cc:70–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69template <typename T>
70T unwrap_expected(const tl::expected<T, Status> &exp) {
71 if (exp.has_value()) {
72 return exp.value();
73 }
74 throw_if_error(exp.error());
75 return T{};
76}
77
78template <typename T>
79T unwrap_expected(tl::expected<T, Status> &&exp) {

Callers 7

execute_for_pythonFunction · 0.85
InitializeMethod · 0.85
bind_db_methodsMethod · 0.85
bind_ddl_methodsMethod · 0.85
bind_dml_methodsMethod · 0.85
bind_dql_methodsMethod · 0.85
bind_iteratorMethod · 0.85

Calls 4

throw_if_errorFunction · 0.85
has_valueMethod · 0.45
valueMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected