mpc
Haskell-like feature supports in C++
mpc::detail::combine_op Struct Reference

combine :: f a -> f a -> f a More...

#include <alternative.hpp>

Public Member Functions

template<class Fa , class Fb >
requires std::same_as<std::remove_cvref_t<Fa>, std::remove_cvref_t<Fb>>
constexpr auto operator() (Fa &&fa, Fb &&fb) const noexcept(noexcept(alternative_traits< std::remove_cvref_t< Fa > >::combine(std::forward< Fa >(fa), std::forward< Fb >(fb)))) -> decltype(alternative_traits< std::remove_cvref_t< Fa > >::combine(std::forward< Fa >(fa), std::forward< Fb >(fb)))
 

Detailed Description

combine :: f a -> f a -> f a

(<|>) in Haskell


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