You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/test/std/algorithms/alg.sorting
Eric Fiselier c39fe08b20 Add diagnostics for min/max algorithms when a InputIterator is used.
These algorithms require a ForwardIterator or better. Ensure
we diagnose the contract violation at compile time instead of
of silently doing the wrong thing.

Further algorithms will be audited in upcoming patches.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@340426 91177308-0d34-0410-b5e6-96231b3b80d8
6 years ago
..
alg.binary.search More constexpr algorithms from P0202: lower_bound, upper_bound, equal_range, binary_search 7 years ago
alg.clamp [libcxx] [test] Untabify, NFC. 7 years ago
alg.heap.operations Some of the tests from earlier today had 'int' as the return type when it should have been 'bool'. Fix that. It doesn't change the behavior of any of the tests, but it's more accurate. 7 years ago
alg.lex.comparison Work around GCC constexpr initialization bug 7 years ago
alg.merge [libcxx] [test] Strip trailing whitespace, NFC. 7 years ago
alg.min.max Add diagnostics for min/max algorithms when a InputIterator is used. 6 years ago
alg.nth.element Cleanup _LIBCPP_HAS_NO_<c++11-feature> in algorithm 8 years ago
alg.permutation.generators Move test into test/std subdirectory. 10 years ago
alg.set.operations [libcxx] [test] Strip trailing whitespace, NFC. 7 years ago
alg.sort Some of the tests from earlier today had 'int' as the return type when it should have been 'bool'. Fix that. It doesn't change the behavior of any of the tests, but it's more accurate. 7 years ago
nothing_to_do.pass.cpp Move test into test/std subdirectory. 10 years ago