mpc
Haskell-like feature supports in C++
|
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))) |
combine :: f a -> f a -> f a
(<|>) in Haskell