![]() |
LeechCraft 0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
|
#include "either.h"
Public Types | |
| using | L_t = L |
| using | R_t = R |
Public Member Functions | |
| Either (FromStdExpected_t, std::expected< R, L > &&ex) | |
| Either ()=delete | |
| Either (R &&r) | |
| Either (const R &r) | |
| Either (Left< void >, const L &l) | |
| Either (const L &l) | |
| Either (Left< L > &&left) | |
| template<typename LL> | |
| Either (Left< LL > &&left) | |
| Either (const Either &)=default | |
| Either (Either &&)=default | |
| Either & | operator= (const Either &)=default |
| Either & | operator= (Either &&)=default |
| bool | IsLeft () const |
| bool | IsRight () const |
| const L & | GetLeft () const |
| L & | GetLeft () |
| const R & | GetRight () const |
| R & | GetRight () |
| std::optional< L > | MaybeLeft () const |
| std::optional< R > | MaybeRight () const |
| template<typename F> | |
| R | ToRight (F &&f) const |
| template<typename F> | |
| auto | MapLeft (F &&f) const |
| template<typename F> | |
| auto | MapRight (F &&f) const |
Friends | |
| bool | operator== (const Either &e1, const Either &e2) |
| bool | operator!= (const Either &e1, const Either &e2) |
| using LC::Util::Either< L, R >::L_t = L |
| using LC::Util::Either< L, R >::R_t = R |
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
Definition at line 93 of file either.h.
Referenced by LC::Util::InstanceFunctor< Either< L, R > >::Apply(), LC::Util::Either< Error, Success >::MaybeLeft(), LC::Util::Either< Error, Success >::ToRight(), and LC::Util::Visit().
|
inline |
|
inline |
Definition at line 107 of file either.h.
Referenced by LC::Util::InstanceFunctor< Either< L, R > >::Apply(), LC::Util::Either< Error, Success >::MaybeRight(), LC::Util::Either< Error, Success >::ToRight(), and LC::Util::Visit().
|
inline |
Definition at line 83 of file either.h.
Referenced by LC::Util::InstanceFunctor< Either< L, R > >::Apply().
|
inline |
Definition at line 88 of file either.h.
Referenced by LC::Util::Either< Error, Success >::IsLeft(), LC::Util::Either< Error, Success >::ToRight(), and LC::Util::Visit().
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
inline |