Adding minmaxElement to Phobos?

Per Nordlöw per.nordlow at gmail.com
Wed Sep 4 22:12:28 UTC 2019


At

https://stackoverflow.com/a/19954882/683710

I just learned the reason for C++11 having

https://en.cppreference.com/w/cpp/algorithm/minmax_element

Calculating the min and max simultaneously reduces the number of 
comparisons with 1/4.

Should we add a minmaxElement alongside minElement and maxElement?


More information about the Digitalmars-d mailing list