cpp/algorithm/ranges/fold left first

Left-folds the elements of given range, that is, returns the result of evaluation of the chain expression:, where , , ..., are elements of the range.

Informally, behaves like std's overload that accepts a binary predicate, except that the  is used internally as an initial element.

The behavior is undefined if is not a valid range.

@1@ The range is. Equivalent to.

@2@ Same as, except that uses as the range, as if by using  as  and  as.

Return value
An object of type that contains the result of left-fold of the given range over, where  is equivalent to.

If the range is empty, is returned.

Complexity
Exactly (assuming the range is not empty) applications of the function object.