Composition of Functors. More...
#include <Composer.hpp>
Public Member Functions | |
template<class F_ , class... Gs_, REQUIRES(Concepts::Similar< Types< F, Gs... >, Types< F_, Gs_... > >) > | |
constexpr | Composer (F_ &&f, Gs_ &&... gs) |
template<class... Ts> | |
constexpr auto | operator() (Ts const &... args) const |
Public Attributes | |
F | f_ |
std::tuple< Gs... > | gs_ |
Composition of Functors.
Implement the composition c:=f(g1,g2,...,gN), where
fis an N-ary functor
gI` are functors of the same arity. The composition is defined as
Requirements: