cpp/algorithm/ranges/fold right

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.

The behavior is undefined if is not a valid range.

@1@ The range is.

@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, where  is equivalent to.

If the range is empty, is returned.

Complexity
Exactly applications of the function object.