LeechCraft 0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
either.h File Reference
#include <source_location>
#include <QtDebug>
#include <util/sll/either.h>
#include <util/sll/void.h>
#include "task.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::IgnoreLeft
struct  LC::Util::detail::EitherAwaiter< L, R, ErrorHandler >

Namespaces

namespace  LC
namespace  LC::Util
namespace  LC::Util::detail

Functions

template<typename Promise>
void LC::Util::detail::TerminateLeftyCoroutine (std::coroutine_handle< Promise > handle, const auto &error)
template<typename L, typename R, typename F>
detail::EitherAwaiter< L, R, F > LC::Util::WithHandler (const Either< L, R > &either, F &&errorHandler)
template<typename L, typename R>
auto LC::Util::WithHandler (const Either< L, R > &either, IgnoreLeft)
template<typename T>
Either< Void, T > LC::Util::NonEmpty (const T &t, auto &&msg, std::source_location loc=std::source_location::current())
template<typename T, typename... Msgs>
Either< Void, T > LC::Util::NonEmpty (const T &t, const std::tuple< Msgs... > &msgsTuple, std::source_location loc=std::source_location::current())
template<typename L, typename R>
Util::detail::EitherAwaiter< L, R, std::identity > LC::operator co_await (const Util::Either< L, R > &either)