Polymake Template Library (PTL): polymake::mlist_fold< T, BinaryFunc, InitVal > Struct Template Reference
Polymake Template Library (PTL)  4.2
polymake::mlist_fold< T, BinaryFunc, InitVal > Struct Template Reference

Detailed Description

template<typename T, template< typename, typename > class BinaryFunc, typename InitVal = void>
struct polymake::mlist_fold< T, BinaryFunc, InitVal >

Fold a meta-list applying a binary meta-function to its elements. Folding starts at the tail of the list. If it should start at the head, the input list must be reversed (

See also
mlist_reverse). The elements of the list are passed as the left argument of BinaryFunc, the accumulated intermediate result as the right argument. The initial value is passed as the right argument for the very first application of BinaryFunc. If it is void, the tail input element is taken as is.

The documentation for this struct was generated from the following file:
  • lib/core/include/meta_list.h