|
ThreadSchedule 1.0.0
Modern C++ thread management library
|
Specialization of expected for operations that produce no value. More...
#include <expected.hpp>
Public Types | |
| using | value_type = void |
| using | error_type = E |
| using | unexpected_type = unexpected<E> |
Public Member Functions | |
| constexpr | expected (expected const &other)=default |
| constexpr | expected (expected &&other)=default |
| template<typename... Args> | |
| constexpr | expected (unexpect_t, Args &&... args) |
| constexpr | expected (unexpected< E > const &ue) |
| constexpr | expected (unexpected< E > &&ue) |
| constexpr auto | operator= (expected const &other) -> expected &=default |
| constexpr auto | operator= (expected &&other) -> expected &=default |
| constexpr auto | operator= (unexpected< E > const &ue) -> expected & |
| constexpr auto | operator= (unexpected< E > &&ue) -> expected & |
| constexpr | operator bool () const noexcept |
| constexpr auto | has_value () const noexcept -> bool |
| constexpr void | value () const |
| constexpr auto | error () const &noexcept -> E const & |
| constexpr auto | error () &noexcept -> E & |
| constexpr auto | error () const &&noexcept -> E const && |
| constexpr auto | error () &&noexcept -> E && |
| constexpr void | emplace () |
| constexpr void | swap (expected &other) noexcept(std::is_nothrow_move_constructible_v< E > &&std::is_nothrow_swappable_v< E >) |
| template<typename F> | |
| constexpr auto | and_then (F &&f) & |
| template<typename F> | |
| constexpr auto | and_then (F &&f) const & |
| template<typename F> | |
| constexpr auto | and_then (F &&f) && |
| template<typename F> | |
| constexpr auto | and_then (F &&f) const && |
| template<typename F> | |
| constexpr auto | or_else (F &&f) & |
| template<typename F> | |
| constexpr auto | or_else (F &&f) const & |
| template<typename F> | |
| constexpr auto | or_else (F &&f) && |
| template<typename F> | |
| constexpr auto | or_else (F &&f) const && |
| template<typename F> | |
| constexpr auto | transform (F &&f) & |
| template<typename F> | |
| constexpr auto | transform (F &&f) const & |
| template<typename F> | |
| constexpr auto | transform (F &&f) && |
| template<typename F> | |
| constexpr auto | transform (F &&f) const && |
| template<typename F> | |
| constexpr auto | transform_error (F &&f) & |
| template<typename F> | |
| constexpr auto | transform_error (F &&f) const & |
| template<typename F> | |
| constexpr auto | transform_error (F &&f) && |
| template<typename F> | |
| constexpr auto | transform_error (F &&f) const && |
| constexpr auto | operator-> () const noexcept -> void const * |
| constexpr auto | operator* () const &noexcept -> void const & |
| constexpr auto | value_or (U &&default_value) const &-> void |
Friends | |
| template<typename E2> | |
| constexpr friend auto | operator== (expected const &lhs, expected< void, E2 > const &rhs) -> bool |
| template<typename E2> | |
| constexpr friend auto | operator!= (expected const &lhs, expected< void, E2 > const &rhs) -> bool |
| template<typename E2> | |
| constexpr friend auto | operator== (expected const &lhs, unexpected< E2 > const &rhs) -> bool |
| template<typename E2> | |
| constexpr friend auto | operator== (unexpected< E2 > const &lhs, expected const &rhs) -> bool |
| template<typename E2> | |
| constexpr friend auto | operator!= (expected const &lhs, unexpected< E2 > const &rhs) -> bool |
| template<typename E2> | |
| constexpr friend auto | operator!= (unexpected< E2 > const &lhs, expected const &rhs) -> bool |
Specialization of expected for operations that produce no value.
expected<void, E> can be in either a "success" state (has_value() is true, no payload) or an "error" state carrying an E. This is useful for functions that can fail but have nothing to return on success.
| E | The error type. Defaults to std::error_code in the primary template; here it is explicitly specified by the user. |
Definition at line 735 of file expected.hpp.
| using threadschedule::expected< void, E >::error_type = E |
Definition at line 739 of file expected.hpp.
| using threadschedule::expected< void, E >::unexpected_type = unexpected<E> |
Definition at line 740 of file expected.hpp.
| using threadschedule::expected< void, E >::value_type = void |
Definition at line 738 of file expected.hpp.
|
inlineconstexpr |
Definition at line 742 of file expected.hpp.
|
inlineexplicitconstexpr |
Definition at line 750 of file expected.hpp.
|
inlineconstexpr |
Definition at line 755 of file expected.hpp.
|
inlineconstexpr |
Definition at line 759 of file expected.hpp.
|
inline |
Definition at line 359 of file expected.hpp.
|
inlineconstexpr |
Definition at line 842 of file expected.hpp.
|
inlineconstexpr |
Definition at line 860 of file expected.hpp.
|
inlineconstexpr |
Definition at line 851 of file expected.hpp.
|
inlineconstexpr |
Definition at line 869 of file expected.hpp.
|
inlineconstexpr |
Definition at line 816 of file expected.hpp.
|
inlineconstexprnoexcept |
Definition at line 811 of file expected.hpp.
|
inlineconstexprnoexcept |
Definition at line 801 of file expected.hpp.
|
inlinenodiscardconstexprnoexcept |
Definition at line 806 of file expected.hpp.
|
inlinenodiscardconstexprnoexcept |
Definition at line 796 of file expected.hpp.
|
inlinenodiscardconstexprnoexcept |
Definition at line 785 of file expected.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 780 of file expected.hpp.
|
inlineconstexprnoexcept |
Definition at line 378 of file expected.hpp.
|
inlineconstexprnoexcept |
Definition at line 368 of file expected.hpp.
|
inlineconstexpr |
Definition at line 773 of file expected.hpp.
|
inlineconstexpr |
Definition at line 766 of file expected.hpp.
|
inlineconstexpr |
Definition at line 878 of file expected.hpp.
|
inlineconstexpr |
Definition at line 896 of file expected.hpp.
|
inlineconstexpr |
Definition at line 887 of file expected.hpp.
|
inlineconstexpr |
Definition at line 905 of file expected.hpp.
|
inlineconstexprnoexcept |
Definition at line 821 of file expected.hpp.
|
inlineconstexpr |
Definition at line 914 of file expected.hpp.
|
inlineconstexpr |
Definition at line 932 of file expected.hpp.
|
inlineconstexpr |
Definition at line 923 of file expected.hpp.
|
inlineconstexpr |
Definition at line 941 of file expected.hpp.
|
inlineconstexpr |
Definition at line 950 of file expected.hpp.
|
inlineconstexpr |
Definition at line 968 of file expected.hpp.
|
inlineconstexpr |
Definition at line 959 of file expected.hpp.
|
inlineconstexpr |
Definition at line 977 of file expected.hpp.
|
inlineconstexpr |
Definition at line 790 of file expected.hpp.
|
inlineconstexpr |
Definition at line 457 of file expected.hpp.
|
friend |
Definition at line 997 of file expected.hpp.
|
friend |
Definition at line 1015 of file expected.hpp.
|
friend |
Definition at line 1021 of file expected.hpp.
|
friend |
Definition at line 987 of file expected.hpp.
|
friend |
Definition at line 1003 of file expected.hpp.
|
friend |
Definition at line 1009 of file expected.hpp.