Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Tolerate Clangs new static_assert messages | Eric Fiselier | 2018-12-14 | 1 | -1/+1 |
| | | | | llvm-svn: 349189 | ||||
* | [libcxx] [test] D27022: Fix MSVC warning C4389 "signed/unsigned mismatch", ↵ | Stephan T. Lavavej | 2016-12-06 | 1 | -3/+4 |
| | | | | | | | | | | part 9/12. Add static_cast<std::size_t> to more comparisons. (Performed manually, unlike part 8/12.) Also, include <cstddef> when it wasn't already being included. llvm-svn: 288746 | ||||
* | [libcxx] [test] D26816: Fix non-Standard assumptions when testing sample(). | Stephan T. Lavavej | 2016-11-18 | 1 | -3/+14 |
| | | | | | | | | | | | | | sample() isn't specified with a reproducible algorithm, so expecting exact output is non-Standard. Mark those tests with LIBCPP_ASSERT. In test_small_population(), we're guaranteed to get all of the elements, but not necessarily in their original order. When PopulationCategory is forward, we're guaranteed stability (and can therefore test equal()). Otherwise, we can only test is_permutation(). (As it happens, both libcxx and MSVC's STL provide stability in this scenario for input-only iterators.) llvm-svn: 287383 | ||||
* | Implement C++17 std::sample. | Eric Fiselier | 2016-08-28 | 3 | -0/+244 |
This patch implements the std::sample function added to C++17 from LFTS. It also removes the std::experimental::sample implementation which now forwards to std::sample. llvm-svn: 279948 |