The BOOST_PP_SEQ_FOLD_LEFT macro folds (or accumulates) the elements of
a seq left-to-right.
BOOST_PP_SEQ_FOLD_LEFT(op, state, seq)
A ternary operation of the form op(s, state, elem).
This macro is called for each element in seq--each time returning a new state.
This operation is expanded by BOOST_PP_SEQ_FOLD_LEFT with the next
available fold step, the current state, and the current element.
The initial state of the fold.
The seq to be folded.
For the seq
), this macro expands to:
op(s, op(s, op(s, state, 0),
For maximum efficiency, BOOST_PP_SEQ_FOLD_LEFT can be reentered with BOOST_PP_SEQ_FOLD_LEFT_s.