cmcstl2
cmcstl2 copied to clipboard
max_element multiple occurrences returns last
In case where the largest value occurs more than once, max_element
should return the first of them but returns the last.
See https://gcc.godbolt.org/z/aTDtlZ.