MCPcopy Create free account
hub / github.com/NativeScript/android / or_else_impl

Function or_else_impl

test-app/runtime/src/main/cpp/ada/ada.h:4002–4007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4000 std::declval<Exp>().error())),
4001 detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
4002constexpr auto or_else_impl(Exp &&exp, F &&f) {
4003 static_assert(detail::is_expected<Ret>::value, "F must return an expected");
4004 return exp.has_value() ? std::forward<Exp>(exp)
4005 : detail::invoke(std::forward<F>(f),
4006 std::forward<Exp>(exp).error());
4007}
4008
4009template <class Exp, class F,
4010 class Ret = decltype(detail::invoke(std::declval<F>(),

Callers 2

or_elseMethod · 0.85

Calls 2

invokeFunction · 0.85
has_valueMethod · 0.45

Tested by

no test coverage detected