|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Specialization of expected for void value type.
More...
#include <ah-cpp-compat.H>
Public Types | |
| using | value_type = void |
| using | error_type = E |
| using | unexpected_type = unexpected< E > |
Public Member Functions | |
| constexpr | expected () noexcept |
| template<class G > | |
| constexpr | expected (const unexpected< G > &u) |
| template<class G > | |
| constexpr | expected (unexpected< G > &&u) |
| template<class... Args> | |
| constexpr | expected (unexpect_t, Args &&...args) |
| expected (const expected &o) | |
| expected (expected &&o) noexcept(std::is_nothrow_move_constructible_v< E >) | |
| expected & | operator= (const expected &o) |
| expected & | operator= (expected &&o) noexcept(std::is_nothrow_move_constructible_v< E >) |
| ~expected () | |
| constexpr bool | has_value () const noexcept |
| constexpr | operator bool () const noexcept |
| constexpr void | value () const |
| constexpr const E & | error () const &noexcept |
| constexpr E & | error () &noexcept |
| template<class F > | |
| auto | and_then (F &&f) const |
| template<class F > | |
| auto | or_else (F &&f) const |
Private Member Functions | |
| void | destroy () noexcept |
Private Attributes | |
| union Aleph::expected< void, E >:: { ... } | |
| bool | has_ |
Specialization of expected for void value type.
Models success/failure without carrying a value on success. Common pattern for operations that report errors but have no meaningful return value.
| E | error type. |
Definition at line 689 of file ah-cpp-compat.H.
| using Aleph::expected< void, E >::error_type = E |
Definition at line 705 of file ah-cpp-compat.H.
| using Aleph::expected< void, E >::unexpected_type = unexpected<E> |
Definition at line 706 of file ah-cpp-compat.H.
| using Aleph::expected< void, E >::value_type = void |
Definition at line 704 of file ah-cpp-compat.H.
|
inlineconstexprnoexcept |
Definition at line 708 of file ah-cpp-compat.H.
|
inlineconstexpr |
Definition at line 711 of file ah-cpp-compat.H.
|
inlineconstexpr |
Definition at line 716 of file ah-cpp-compat.H.
|
inlineexplicitconstexpr |
Definition at line 722 of file ah-cpp-compat.H.
Definition at line 727 of file ah-cpp-compat.H.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::expected< T, E >::err_, and Aleph::expected< T, E >::has_.
|
inlinenoexcept |
Definition at line 733 of file ah-cpp-compat.H.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::expected< T, E >::err_, and Aleph::expected< T, E >::has_.
|
inline |
Definition at line 767 of file ah-cpp-compat.H.
References Aleph::expected< T, E >::destroy().
|
inline |
Definition at line 782 of file ah-cpp-compat.H.
References Aleph::expected< T, E >::err_, and Aleph::expected< T, E >::has_.
|
inlineprivatenoexcept |
Definition at line 697 of file ah-cpp-compat.H.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::expected< T, E >::err_, and Aleph::expected< T, E >::has_.
|
inlineconstexprnoexcept |
Definition at line 779 of file ah-cpp-compat.H.
References Aleph::expected< T, E >::err_.
|
inlineconstexprnoexcept |
Definition at line 778 of file ah-cpp-compat.H.
References Aleph::expected< T, E >::err_.
|
inlineconstexprnoexcept |
Definition at line 769 of file ah-cpp-compat.H.
References Aleph::expected< T, E >::has_.
|
inlineexplicitconstexprnoexcept |
Definition at line 770 of file ah-cpp-compat.H.
References Aleph::expected< T, E >::has_.
|
inline |
Definition at line 740 of file ah-cpp-compat.H.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::expected< T, E >::destroy(), Aleph::expected< T, E >::err_, and Aleph::expected< T, E >::has_.
|
inlinenoexcept |
Definition at line 753 of file ah-cpp-compat.H.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::expected< T, E >::destroy(), Aleph::expected< T, E >::err_, and Aleph::expected< T, E >::has_.
|
inline |
Definition at line 791 of file ah-cpp-compat.H.
References Aleph::expected< T, E >::err_, and Aleph::expected< T, E >::has_.
|
inlineconstexpr |
Definition at line 772 of file ah-cpp-compat.H.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::expected< T, E >::err_, and Aleph::expected< T, E >::has_.
| union Aleph::expected< void, E > { ... } Aleph::expected< void, E > |
| E Aleph::expected< void, E >::err_ |
Definition at line 693 of file ah-cpp-compat.H.
|
private |
Definition at line 695 of file ah-cpp-compat.H.