Danila Kutenin
7e1ee1e10d
[libcxx] Add strict weak ordering checks to sorting algorithms
...
This is the implementation of the first proposal of strict weak ordering checks described in https://discourse.llvm.org/t/rfc-strict-weak-ordering-checks-in-the-debug-libc/70217
This targets the most vulnerable algorithms like std::sort
Reviewed By: philnik, #libc
Differential Revision: https://reviews.llvm.org/D150264
2023-06-04 19:27:31 +02:00
Nikolas Klauser
5146b57b40
[libc++][NFC] Rename the constexpr macros
...
This was discussed on Discord with the consensus that we should rename the macros.
Reviewed By: ldionne, Mordante, var-const, avogelsgesang, jloser, #libc
Spies: libcxx-commits
Differential Revision: https://reviews.llvm.org/D131498
2022-08-19 15:35:02 +02:00
Konstantin Varlamov
14cf74d65d
[libc++][ranges] Implement ranges::shuffle.
...
Differential Revision: https://reviews.llvm.org/D130321
2022-07-22 09:59:13 -07:00
Konstantin Varlamov
a7c3379cf9
[libc++][ranges] Make range algorithms support proxy iterators
...
Also test all the range algorithms to verify the support.
Differential Revision: https://reviews.llvm.org/D129823
2022-07-17 18:12:06 -07:00
Nikolas Klauser
2aea8af251
[libc++] Make _LIBCPP_DEBUG_RANDOMIZE_RANGE a function
...
Reviewed By: ldionne, Mordante, var-const, #libc
Spies: mgorny, libcxx-commits
Differential Revision: https://reviews.llvm.org/D128181
2022-07-03 18:03:44 +02:00