![]() |
LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
|
#include "either.h"
Public Types | |
using | L_t = L |
using | R_t = R |
Public Member Functions | |
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> requires std::is_constructible_v<L, 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 |
const R & | GetRight () const |
std::optional< L > | MaybeLeft () const |
std::optional< R > | MaybeRight () const |
std::variant< L, R > | AsVariant () const & |
std::variant< L, R > | AsVariant () && |
template<typename F> | |
R | ToRight (F &&f) const |
template<typename F> | |
auto | MapLeft (F &&f) const |
template<typename F> | |
auto | MapRight (F &&f) const |
Static Public Member Functions | |
static auto | EmbeddingLeft () |
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 |
|
delete |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
Definition at line 121 of file either.h.
Referenced by LC::Util::Visit().
|
inlinestatic |
|
inline |
Definition at line 93 of file either.h.
Referenced by LC::Util::InstanceFunctor< Either< L, R > >::Apply(), LC::Util::Either< Error, Success >::MapLeft(), LC::Util::Either< Error, Success >::MapRight(), and LC::Util::Either< Error, Success >::MaybeLeft().
|
inline |
Definition at line 100 of file either.h.
Referenced by LC::Util::InstanceFunctor< Either< L, R > >::Apply(), LC::Util::Either< Error, Success >::MapLeft(), LC::Util::Either< Error, Success >::MapRight(), LC::Util::Either< Error, Success >::MaybeRight(), LC::Util::RightOr(), LC::Util::RightOr(), and LC::Util::Either< Error, Success >::ToRight().
|
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 >::MapLeft(), LC::Util::Either< Error, Success >::MapRight(), LC::Util::RightOr(), LC::Util::RightOr(), and LC::Util::Either< Error, Success >::ToRight().
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
inline |