cpp/algorithm/ranges/find last

Returns the last element in the range that satisfies specific criteria: @1@ searches for an element equal to.

@3@ searches for the last element in the range  for which predicate  returns.

@5@ searches for the last element in the range  for which predicate  returns. @2,4,6@ Same as, but uses as the source range, as if using  as  and  as.

Return value
@1,2,3@ Let be the last iterator in the range  for which  is. Returns, or if no such iterator is found.

@2,4,6@ Same as but the return type is.

Complexity
At most applications of the predicate and projection.

Possible implementation
These implementations only show the slower algorithm used when models.