|
| constexpr | expected ()=default |
| |
| constexpr | expected (const expected &rhs)=default |
| |
| constexpr | expected (expected &&rhs) noexcept=default |
| |
| template<class U , class G _ENABLE_IF> |
| constexpr | expected (const expected< U, G > &rhs) |
| |
| template<class U , class G _ENABLE_IF> |
| constexpr | expected (const expected< U, G > &rhs) |
| |
| template<class U , class G _ENABLE_IF> |
| constexpr | expected (expected< U, G > &&rhs) |
| |
| template<class U , class G _ENABLE_IF> |
| constexpr | expected (expected< U, G > &&rhs) |
| |
| template<class G = E _ENABLE_IF( std::is_constructible_v<E, const G&> && std::is_convertible_v<const G&, E> )> |
| constexpr | expected (const unexpected< G > &e) |
| |
| template<class G = E _ENABLE_IF( std::is_constructible_v<E, const G&> && !std::is_convertible_v<const G&, E> )> |
| constexpr | expected (const unexpected< G > &e) |
| |
| template<class G = E _ENABLE_IF( std::is_constructible_v<E, G&&> && std::is_convertible_v<G&&, E> )> |
| constexpr | expected (unexpected< G > &&e) |
| |
| template<class G = E _ENABLE_IF( std::is_constructible_v<E, G&&> && !std::is_convertible_v<G&&, E> )> |
| constexpr | expected (unexpected< G > &&e) |
| |
| template<class... Args _ENABLE_IF> |
| constexpr | expected (std::in_place_t, Args &&...) |
| |
| template<class... Args _ENABLE_IF> |
| constexpr | expected (unexpect_t, Args &&... args) |
| |
| template<class U , class... Args _ENABLE_IF> |
| constexpr | expected (unexpect_t, std::initializer_list< U > il, Args &&... args) |
| |
| | ~expected ()=default |
| |
| expected & | operator= (const expected &rhs)=default |
| |
| expected & | operator= (expected &&rhs) noexcept(std::is_nothrow_move_assignable_v< E >)=default |
| |
| template<class G = E> |
| expected & | operator= (const unexpected< G > &rhs) |
| |
| template<class G = E _ENABLE_IF( std::is_nothrow_move_constructible_v<G> && std::is_move_assignable_v<G> )> |
| expected & | operator= (unexpected< G > &&rhs) |
| |
| void | emplace () |
| |
| template<typename = std::enable_if_t< std::is_swappable_v<E>>> |
| void | swap (expected &rhs) noexcept(std::is_nothrow_move_constructible_v< E >) |
| |
| constexpr bool | has_value () const noexcept |
| |
| constexpr bool | ok () const noexcept |
| |
| constexpr void | value () const & |
| |
| constexpr const E & | error () const & |
| |
| constexpr E & | error () & |
| |
| constexpr const E && | error () const && |
| |
| constexpr E && | error () && |
| |