This is an archive of the discontinued LLVM Phabricator instance.

[libc++] [P0879] constexpr reverse, partition, *_permutation
ClosedPublic

Authored by Quuxplusone on Dec 16 2020, 9:40 PM.

Details

Summary

After this patch, the only parts of P0879 that remain missing will be std::nth_element, std::sort, and the heap/partial_sort algorithms.
std::sort may be interesting, I'm not sure yet. The others are all trivial except that their existing tests use std::shuffle which is not constexpr-friendly, so I will rewrite those tests in a separate PR.

Diff Detail

Event Timeline

Quuxplusone requested review of this revision.Dec 16 2020, 9:40 PM
Quuxplusone created this revision.
Herald added a reviewer: Restricted Project. · View Herald TranscriptDec 16 2020, 9:40 PM
Quuxplusone edited the summary of this revision. (Show Details)

The buildbot was indeed happy. Remove the *_heap algorithms (in preparation for their separate PR). This is now ready for landing AFAIC.

Rebased on main. @ldionne ping!

ldionne accepted this revision.Jan 25 2021, 9:00 AM
This revision is now accepted and ready to land.Jan 25 2021, 9:00 AM