Polymake Template Library (PTL): polymake::mlist_fold< T, TOperation > Struct Template Reference
polymake::mlist_fold< T, TOperation > Struct Template Reference
Inheritance diagram for polymake::mlist_fold< T, TOperation >:
Collaboration diagram for polymake::mlist_fold< T, TOperation >:

Detailed Description

template<typename T, template< typename, typename > class TOperation>
struct polymake::mlist_fold< T, TOperation >

Fold a meta-list applying a binary meta-function to its elements. For an empty list, the result is void. For a single-element list, the result is the element itself. The elements of the list are passed as the left argument of TOperation, the accumulated intermediate result as the right argument. 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 documentation for this struct was generated from the following file:
  • lib/core/include/meta_list.h