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

replace2nd :: a -> f b -> f a More...

#include <functor.hpp>

Public Member Functions

template<class A , class Fb >
constexpr auto operator() (A &&a, Fb &&fb) const noexcept(noexcept(functor_traits< std::remove_cvref_t< Fb > >::replace2nd(std::forward< A >(a), std::forward< Fb >(fb)))) -> decltype(functor_traits< std::remove_cvref_t< Fb > >::replace2nd(std::forward< A >(a), std::forward< Fb >(fb)))
 

Detailed Description

replace2nd :: a -> f b -> f a

(<$) in Haskell


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