LeechCraft  0.6.70-9312-g4cc613a2df
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LeechCraft::Util::InstanceMonad< Either< L, R > > Struct Template Reference

#include "either.h"

Public Types

template<typename F >
using BindResult_t = std::result_of_t< F(R)>
 

Static Public Member Functions

template<typename F >
static BindResult_t< F > Bind (const Either< L, R > &value, const F &f)
 

Detailed Description

template<typename L, typename R>
struct LeechCraft::Util::InstanceMonad< Either< L, R > >

Definition at line 259 of file either.h.

Member Typedef Documentation

template<typename L , typename R >
template<typename F >
using LeechCraft::Util::InstanceMonad< Either< L, R > >::BindResult_t = std::result_of_t<F (R)>

Definition at line 262 of file either.h.

Member Function Documentation

template<typename L , typename R >
template<typename F >
static BindResult_t<F> LeechCraft::Util::InstanceMonad< Either< L, R > >::Bind ( const Either< L, R > &  value,
const F &  f 
)
inlinestatic

Definition at line 265 of file either.h.

References LeechCraft::Util::Either< L, R >::GetLeft(), LeechCraft::Util::Either< L, R >::GetRight(), and LeechCraft::Util::Either< L, R >::IsLeft().

+ Here is the call graph for this function:


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