LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
either.h File Reference
#include <variant>
#include <optional>
#include <type_traits>
#include "visitor.h"
Include dependency graph for either.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LC::Util::Left< T >
struct  LC::Util::Left< void >
class  LC::Util::Either< L, R >

Namespaces

namespace  LC
namespace  LC::Util

Functions

template<typename L, typename R, typename F, typename = std::invoke_result_t<F>>
LC::Util::RightOr (const Either< L, R > &either, F &&f)
template<typename L, typename R>
LC::Util::RightOr (const Either< L, R > &either, const R &r)
template<template< typename > class Cont, typename L, typename R>
std::pair< Cont< L >, Cont< R > > LC::Util::Partition (const Cont< Either< L, R > > &eithers)
template<typename Left, typename Right, typename... Args>
auto LC::Util::Visit (const Either< Left, Right > &either, Args &&... args)
template<typename Left, typename Right, typename... Args>
auto LC::Util::Visit (Either< Left, Right > &&either, Args &&... args)

Variables

constexpr auto LC::Util::AsLeft = Left<void> {}