You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the compare class cannot be the last function parameter in a variadic implementation (as in the std implementations) another position must be found, possibilities:
first function parameter: 2 implementations would be needed each, once with compare class and once without. I don't find that useful.
first template parameter: only one implementation is needed with default template parameter(s).
Activity
mclow commentedon Jun 27, 2023
There is also
std::minmax_element, which takes a sequence.