CxxUtils: Add minmax_transformed_element.h
- Feb 19, 2025
-
-
sss authored
Add [min,max]_transformed_element to return the minimum or maximum transformed element from a range along with its iterator. In principle this can be implemented using C++20 ranges, but then its difficult to avoid having the transformation evaluated multiple times per element.
-