MPL11
 All Classes Namespaces Files Typedefs Macros Groups Pages
List of all members
boost::mpl11::on< f, fs > Struct Template Reference

Invokes f with the result of invoking fs... on each corresponding argument. More...

#include <boost/mpl11/fwd/functional.hpp>

Detailed Description

template<typename f, typename... fs>
struct boost::mpl11::on< f, fs >

Invokes f with the result of invoking fs... on each corresponding argument.

Specifically, apply<on<f, fs...>, x...> is equivalent to apply<f, apply<fs, x>...>. The fs... are applied to the arguments in lockstep. Hence, the arity of on is determined by the number of fs....

Haskell pseudo-code:

-- definition
on f fs... $ xs... == f (fs xs)...