MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / expected

Function expected

include/experimental/expected.hpp:1420–1428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1418 !traits::template explicit_other_move_constructible_v<U, G>>
1419 * = nullptr>
1420 constexpr expected(expected<U, G> &&rhs) noexcept(
1421 traits::template is_nothrow_other_move_constructible_v<U, G>)
1422 : impl_base(detail::no_init), ctor_base(in_place) {
1423 if (rhs.has_value()) {
1424 this->construct_value(*std::move(rhs));
1425 } else {
1426 this->construct_error(std::move(rhs).error());
1427 }
1428 }
1429 template <
1430 class U, class G,
1431 enable_if_t<traits::template enable_other_move_constructible_v<U, G> &&

Callers

nothing calls this directly

Calls 4

has_valueMethod · 0.45
construct_valueMethod · 0.45
construct_errorMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected