Daily bit(e) of C++ | std::ranges::find_last, std::ranges::find_last_if, std::ranges::find_last_if_not
Daily bit(e) of C++ #148, The C++23 find last algorithms: std::ranges::find_last, std::ranges::find_last_if and std::ranges::find_last_if_not.
The trio of std::ranges::find_last, std::ranges::find_last_if and std::ranges::find_last_if_not are C++23 algorithms that find the last element matching the provided value or predicate.
While we could use std::ranges::find on bidirectional ranges with the same effect, these variants can operate on forward ranges.