MCPcopy Create free account
hub / github.com/ceph/ceph / TL_EXPECTED_11_CONSTEXPR expected

Method TL_EXPECTED_11_CONSTEXPR expected

src/include/expected.hpp:1604–1611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1602 detail::expected_enable_from_other<T, E, U, G, const U &, const G &>
1603 * = nullptr>
1604 explicit TL_EXPECTED_11_CONSTEXPR expected(const expected<U, G> &rhs)
1605 : ctor_base(detail::default_constructor_tag{}) {
1606 if (rhs.has_value()) {
1607 this->construct(*rhs);
1608 } else {
1609 this->construct_error(rhs.error());
1610 }
1611 }
1612
1613 template <class U, class G,
1614 detail::enable_if_t<(std::is_convertible<U const &, T>::value &&

Callers

nothing calls this directly

Calls 4

has_valueMethod · 0.45
constructMethod · 0.45
construct_errorMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected