cpp/algorithm/ranges/fold right last

Right-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  (assuming the range is not empty).

The behavior is undefined if is not a valid range.

@1@ The range is. Given as, 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 right-fold of the given range over.

If the range is empty, is returned.

Complexity
Exactly applications of the function object.