|
| template<typename U = T, std::enable_if_t< std::is_default_constructible_v< U >, int > = 0> |
| constexpr | expected () |
| template<typename U = T, std::enable_if_t<!std::is_default_constructible_v< U >, int > = 0> |
| | expected ()=delete |
| | expected (expected const &)=default |
| | expected (expected &&)=default |
| auto | operator= (expected const &) -> expected &=default |
| auto | operator= (expected &&) -> expected &=default |
| | ~expected ()=default |
| template<typename U = std::remove_cv_t<T>, std::enable_if_t< detail::expected_can_forward_v< T, E, U > &&std::is_convertible_v< U, T >, int > = 0> |
| constexpr | expected (U &&value) |
| template<typename U = std::remove_cv_t<T>, std::enable_if_t< detail::expected_can_forward_v< T, E, U > &&!std::is_convertible_v< U, T >, int > = 0> |
| constexpr | expected (U &&value) |
| template<typename U, typename G, std::enable_if_t< detail::expected_can_convert_v< T, E, expected< U, G >, U const &, G const & > &&std::is_convertible_v< U const &, T > &&std::is_convertible_v< G const &, E >, int > = 0> |
| constexpr | expected (expected< U, G > const &source) |
| template<typename U, typename G, std::enable_if_t< detail::expected_can_convert_v< T, E, expected< U, G >, U const &, G const & > &&!(std::is_convertible_v< U const &, T > &&std::is_convertible_v< G const &, E >), int > = 0> |
| constexpr | expected (expected< U, G > const &source) |
| template<typename U, typename G, std::enable_if_t< detail::expected_can_convert_v< T, E, expected< U, G >, U, G > &&std::is_convertible_v< U, T > &&std::is_convertible_v< G, E >, int > = 0> |
| constexpr | expected (expected< U, G > &&source) |
| template<typename U, typename G, std::enable_if_t< detail::expected_can_convert_v< T, E, expected< U, G >, U, G > &&!(std::is_convertible_v< U, T > &&std::is_convertible_v< G, E >), int > = 0> |
| constexpr | expected (expected< U, G > &&source) |
| template<typename... Args, std::enable_if_t< std::is_constructible_v< T, Args... >, int > = 0> |
| constexpr | expected (std::in_place_t, Args &&... args) |
| template<typename U, typename... Args, std::enable_if_t< std::is_constructible_v< T, std::initializer_list< U > &, Args... >, int > = 0> |
| constexpr | expected (std::in_place_t, std::initializer_list< U > list, Args &&... args) |
| template<typename G, std::enable_if_t< std::is_constructible_v< E, G const & > &&std::is_convertible_v< G const &, E >, int > = 0> |
| constexpr | expected (unexpected< G > const &source) |
| template<typename G, std::enable_if_t< std::is_constructible_v< E, G const & > &&!std::is_convertible_v< G const &, E >, int > = 0> |
| constexpr | expected (unexpected< G > const &source) |
| template<typename G, std::enable_if_t< std::is_constructible_v< E, G > &&std::is_convertible_v< G, E >, int > = 0> |
| constexpr | expected (unexpected< G > &&source) |
| template<typename G, std::enable_if_t< std::is_constructible_v< E, G > &&!std::is_convertible_v< G, E >, int > = 0> |
| constexpr | expected (unexpected< G > &&source) |
| template<typename... Args, std::enable_if_t< std::is_constructible_v< E, Args... >, int > = 0> |
| constexpr | expected (unexpect_t, Args &&... args) |
| template<typename U, typename... Args, std::enable_if_t< std::is_constructible_v< E, std::initializer_list< U > &, Args... >, int > = 0> |
| constexpr | expected (unexpect_t, std::initializer_list< U > list, Args &&... args) |
| template<typename U = std::remove_cv_t<T>, std::enable_if_t<!std::is_same_v< detail::expected_remove_cvref_t< U >, expected > &&!detail::is_unexpected_v< detail::expected_remove_cvref_t< U > > &&std::is_constructible_v< T, U > &&std::is_assignable_v< T &, U > &&(std::is_nothrow_constructible_v< T, U >||std::is_nothrow_move_constructible_v< T >||std::is_nothrow_move_constructible_v< E >), int > = 0> |
| constexpr auto | operator= (U &&value) -> expected & |
| template<typename G, std::enable_if_t< std::is_constructible_v< E, G const & > &&std::is_assignable_v< E &, G const & > &&(std::is_nothrow_constructible_v< E, G const & >||std::is_nothrow_move_constructible_v< E >||std::is_nothrow_move_constructible_v< T >), int > = 0> |
| constexpr auto | operator= (unexpected< G > const &error) -> expected & |
| template<typename G, std::enable_if_t< std::is_constructible_v< E, G > &&std::is_assignable_v< E &, G > &&(std::is_nothrow_constructible_v< E, G >||std::is_nothrow_move_constructible_v< E >||std::is_nothrow_move_constructible_v< T >), int > = 0> |
| constexpr auto | operator= (unexpected< G > &&error) -> expected & |
| constexpr auto | has_value () const noexcept -> bool |
| constexpr auto | has_error () const noexcept -> bool |
| constexpr | operator bool () const noexcept |
| constexpr auto | operator-> () noexcept THREADSCHEDULE_LIFETIMEBOUND -> T * |
| constexpr auto | operator-> () const noexcept THREADSCHEDULE_LIFETIMEBOUND -> T const * |
| constexpr auto | operator* () &noexcept THREADSCHEDULE_LIFETIMEBOUND -> T & |
| constexpr auto | operator* () const &noexcept THREADSCHEDULE_LIFETIMEBOUND -> T const & |
| constexpr auto | operator* () &&noexcept THREADSCHEDULE_LIFETIMEBOUND -> T && |
| constexpr auto | operator* () const &&noexcept THREADSCHEDULE_LIFETIMEBOUND -> T const && |
| constexpr auto | value () &THREADSCHEDULE_LIFETIMEBOUND -> T & |
| constexpr auto | value () const &THREADSCHEDULE_LIFETIMEBOUND -> T const & |
| constexpr auto | value () &&THREADSCHEDULE_LIFETIMEBOUND -> T && |
| constexpr auto | value () const &&THREADSCHEDULE_LIFETIMEBOUND -> T const && |
| constexpr auto | error () &noexcept THREADSCHEDULE_LIFETIMEBOUND -> E & |
| constexpr auto | error () const &noexcept THREADSCHEDULE_LIFETIMEBOUND -> E const & |
| constexpr auto | error () &&noexcept THREADSCHEDULE_LIFETIMEBOUND -> E && |
| constexpr auto | error () const &&noexcept THREADSCHEDULE_LIFETIMEBOUND -> E const && |
| template<typename U = std::remove_cv_t<T>> |
| constexpr auto | value_or (U &&fallback) const &-> T |
| template<typename U = std::remove_cv_t<T>> |
| constexpr auto | value_or (U &&fallback) &&-> T |
| template<typename G = E> |
| constexpr auto | error_or (G &&fallback) const &-> E |
| template<typename G = E> |
| constexpr auto | error_or (G &&fallback) &&-> E |
| template<typename... Args, std::enable_if_t< std::is_nothrow_constructible_v< T, Args... >, int > = 0> |
| constexpr auto | emplace (Args &&... args) noexcept -> T & |
| template<typename U, typename... Args, std::enable_if_t< std::is_nothrow_constructible_v< T, std::initializer_list< U > &, Args... >, int > = 0> |
| constexpr auto | emplace (std::initializer_list< U > list, Args &&... args) noexcept -> T & |
| template<typename U = T, std::enable_if_t< detail::expected_can_swap_v< T, E >, U > * = nullptr> |
| constexpr void | swap (expected &other) noexcept(std::is_nothrow_move_constructible_v< T > &&std::is_nothrow_move_constructible_v< E > &&std::is_nothrow_swappable_v< T > &&std::is_nothrow_swappable_v< E >) |
| template<typename F, detail::expected_require_constructible< F, E, E & > = 0> |
| constexpr auto | and_then (F &&f) & |
| template<typename F, detail::expected_require_constructible< F, E, E const & > = 0> |
| constexpr auto | and_then (F &&f) const & |
| template<typename F, detail::expected_require_constructible< F, E, E && > = 0> |
| constexpr auto | and_then (F &&f) && |
| template<typename F, detail::expected_require_constructible< F, E, E const && > = 0> |
| constexpr auto | and_then (F &&f) const && |
| template<typename F, detail::expected_require_constructible< F, T, T & > = 0> |
| constexpr auto | or_else (F &&f) & |
| template<typename F, detail::expected_require_constructible< F, T, T const & > = 0> |
| constexpr auto | or_else (F &&f) const & |
| template<typename F, detail::expected_require_constructible< F, T, T && > = 0> |
| constexpr auto | or_else (F &&f) && |
| template<typename F, detail::expected_require_constructible< F, T, T const && > = 0> |
| constexpr auto | or_else (F &&f) const && |
| template<typename F, detail::expected_require_constructible< F, E, E & > = 0> |
| constexpr auto | transform (F &&f) & |
| template<typename F, detail::expected_require_constructible< F, E, E const & > = 0> |
| constexpr auto | transform (F &&f) const & |
| template<typename F, detail::expected_require_constructible< F, E, E && > = 0> |
| constexpr auto | transform (F &&f) && |
| template<typename F, detail::expected_require_constructible< F, E, E const && > = 0> |
| constexpr auto | transform (F &&f) const && |
| template<typename F, detail::expected_require_constructible< F, T, T & > = 0> |
| constexpr auto | transform_error (F &&f) & |
| template<typename F, detail::expected_require_constructible< F, T, T const & > = 0> |
| constexpr auto | transform_error (F &&f) const & |
| template<typename F, detail::expected_require_constructible< F, T, T && > = 0> |
| constexpr auto | transform_error (F &&f) && |
| template<typename F, detail::expected_require_constructible< F, T, T const && > = 0> |
| constexpr auto | transform_error (F &&f) const && |