LeechCraft  0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
LC::Util::InstanceFunctor< Either< L, R > > Struct Template Reference

#include "functor.h"

Public Types

template<typename F >
using FmapResult_t = Either< L, std::invoke_result_t< F, R > >
 

Static Public Member Functions

template<typename F >
static FmapResult_t< F > Apply (const Either< L, R > &either, const F &f)
 

Detailed Description

template<typename L, typename R>
struct LC::Util::InstanceFunctor< Either< L, R > >

Definition at line 236 of file functor.h.

Member Typedef Documentation

◆ FmapResult_t

template<typename L , typename R >
template<typename F >
using LC::Util::InstanceFunctor< Either< L, R > >::FmapResult_t = Either<L, std::invoke_result_t<F, R> >

Definition at line 239 of file functor.h.

Member Function Documentation

◆ Apply()

template<typename L , typename R >
template<typename F >
static FmapResult_t<F> LC::Util::InstanceFunctor< Either< L, R > >::Apply ( const Either< L, R > &  either,
const F &  f 
)
inlinestatic

Definition at line 242 of file functor.h.

References LC::Util::oral::sph::f, LC::Util::Either< L, R >::GetLeft(), LC::Util::Either< L, R >::GetRight(), and LC::Util::Either< L, R >::IsLeft().

+ Here is the call graph for this function:

The documentation for this struct was generated from the following file: