libQuotient
A Qt library for building matrix clients
|
A minimal subset of std::expected from C++23. More...
#include <expected.h>
Public Types | |
using | value_type = T |
using | error_type = E |
Public Member Functions | |
Expected ()=default | |
Expected (const Expected &)=default | |
Expected (Expected &&) noexcept=default | |
~Expected ()=default | |
template<typename X > requires is_constructible_v<X> | |
Q_IMPLICIT | Expected (X &&x) |
Expected & | operator= (const Expected &)=default |
Expected & | operator= (Expected &&) noexcept=default |
template<typename X > requires is_constructible_v<X> | |
Expected & | operator= (X &&x) |
bool | has_value () const |
operator bool () const | |
const value_type & | value () const & |
value_type & | value () & |
value_type | value () && |
const value_type & | operator* () const & |
value_type & | operator* () & |
const value_type * | operator-> () const & |
value_type * | operator-> () & |
template<class U > | |
const T & | value_or (const U &fallback) const & |
template<class U > | |
T && | value_or (U &&fallback) && |
T && | move_value_or (T &&fallback) |
const E & | error () const & |
E & | error () & |
A minimal subset of std::expected from C++23.
Definition at line 14 of file expected.h.
Definition at line 22 of file expected.h.
Definition at line 21 of file expected.h.
|
inline |
Definition at line 31 of file expected.h.
Definition at line 81 of file expected.h.
Definition at line 80 of file expected.h.
Definition at line 45 of file expected.h.
|
inline |
Definition at line 73 of file expected.h.
|
inlineexplicit |
Definition at line 46 of file expected.h.
|
inline |
Definition at line 53 of file expected.h.
|
inline |
Definition at line 52 of file expected.h.
|
inline |
Definition at line 56 of file expected.h.
|
inline |
Definition at line 55 of file expected.h.
|
inline |
Definition at line 39 of file expected.h.
|
inline |
Definition at line 49 of file expected.h.
|
inline |
Definition at line 50 of file expected.h.
|
inline |
Definition at line 48 of file expected.h.
Definition at line 59 of file expected.h.
|
inline |
Definition at line 66 of file expected.h.