cmcstl2 icon indicating copy to clipboard operation
cmcstl2 copied to clipboard

max_element multiple occurrences returns last

Open dvirtz opened this issue 5 years ago • 0 comments

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.

dvirtz avatar May 26 '19 04:05 dvirtz