CaseyCarter / cmcstl2

An implementation of C++ Extensions for Ranges
Other
222 stars 68 forks source link

max_element multiple occurrences returns last #306

Open dvirtz opened 5 years ago

dvirtz commented 5 years ago

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.