cpp/algorithm/ranges/return types/min max result

is a class template that provides a way to store two objects or references of the same type as a single unit.

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