This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Add ranges::max_element to the synopsis and ADL-proof the __min_element_impl calls
ClosedPublic

Authored by philnik on May 22 2022, 4:44 AM.

Diff Detail

Event Timeline

philnik created this revision.May 22 2022, 4:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2022, 4:44 AM
philnik requested review of this revision.May 22 2022, 4:44 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne added inline comments.May 23 2022, 10:27 AM
libcxx/include/__algorithm/ranges_max_element.h
39

Can we add tests?

ldionne accepted this revision.May 23 2022, 10:28 AM

LGTM with tests. We have several ADL proofing tests, see for example libcxx/test/std/strings/basic.string/string.modifiers/robust_against_adl.pass.cpp.

This revision is now accepted and ready to land.May 23 2022, 10:28 AM

@philnik just made me aware of https://wg21.link/P2538, so we can't use ADL-proof tests. Hence LGTM as-is.