cpp/algorithm/ranges/return types/in fun result

is a class template that provides a way to store an iterator and a function object as a single unit.

Standard library
The following standard library functions use as the return type: