| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 283643
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
Libc++'s implementation of shuffle and sample already support lvalue and rvalue
RNG's. This patch adds tests for both categories and marks the issue as complete.
This patch also contains drive-by change for std::experimental::sample which
improves the diagnostics produced when the correct iterator categories are
not supplied.
llvm-svn: 279947
|
|
|
|
| |
llvm-svn: 276585
|
|
|
|
|
|
| |
on result'. We already did this, just added tests
llvm-svn: 274252
|
|
|
|
|
|
| |
STL@microsoft.com
llvm-svn: 273820
|
|
|
|
| |
llvm-svn: 273367
|
|
|
|
|
|
|
|
|
| |
TEST_STD_VER.
This is a huge cleanup that helps make the libc++ test suite more portable.
Patch from STL@microsoft.com. Thanks STL!
llvm-svn: 272716
|
|
|
|
|
|
|
|
|
| |
Adds XFAIL/UNSUPPORTED lit tags as appropriate. Gets a clean test run
for -std=c++98 on Fedora 20.
NFC.
llvm-svn: 271741
|
|
|
|
| |
llvm-svn: 271435
|
|
|
|
| |
llvm-svn: 267852
|
|
|
|
|
|
| |
STL@microsoft.com
llvm-svn: 267844
|
|
|
|
|
|
| |
values' for C++17
llvm-svn: 262871
|
|
|
|
| |
llvm-svn: 243641
|
|
|
|
|
|
| |
and the suggested fix.
llvm-svn: 243530
|
|
|
|
| |
llvm-svn: 242626
|
|
|
|
| |
llvm-svn: 236952
|
|
|
|
| |
llvm-svn: 228840
|
|
|
|
|
|
| |
in the initializer_list
llvm-svn: 228839
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
The requirement on the `Size` type passed to *_n algorithms is that it is convertible to an integral type. This means we can't use a variable of type `Size` directly. Instead we need to convert it to an integral type first. The problem is finding out what integral type to convert it to. `__convert_to_integral` figures out what integral type to convert it to and performs the conversion, It also promotes the resulting integral type so that it is at least as big as an integer. `__convert_to_integral` also has a special case for converting enums. This should only work on non-scoped enumerations because it does not apply an explicit conversion from the enum to its underlying type.
Reviewers: chandlerc, mclow.lists
Reviewed By: mclow.lists
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D7449
llvm-svn: 228704
|
|
|
|
| |
llvm-svn: 228280
|
|
|
|
|
|
| |
of the sequence twice.
llvm-svn: 227824
|
|
|
|
|
|
| |
optimization; if either half of the merge was small (i.e, less than 9 items), it did an inplace merge rather than allocating a buffer and doing a faster/smarter merge. However, this failed to satisfy the complexity requirements in the standard. Remove that code. Add tests to check the complexity, and add the same tests for std::merge, since we are in that section of the test suite anyway.
llvm-svn: 227811
|
|
|
|
| |
llvm-svn: 227363
|
|
|
|
|
|
| |
Peter Griess for the report and suggested fix
llvm-svn: 225285
|
|
llvm-svn: 224658
|