MPL11
 All Classes Namespaces Files Typedefs Macros Groups Pages
boost::mpl11::foldr< f, state, structure > Struct Template Reference

Right-associative fold of a structure using a binary operation. More...

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

Detailed Description

template<typename f, typename state, typename structure>
struct boost::mpl11::foldr< f, state, structure >

Right-associative fold of a structure using a binary operation.

Specifically, returns the result of the successive application of the binary operation f to every element of the structure and the result of the next f invocation (or state for the last application). For example, if the structure contains x1, x2, ..., xn:

foldr(f, state, structure) == f(x1, f(x2, ...f(xn, state)...))