summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/experimental/algorithms/alg.random.sample/sample.fail.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove std::experimental::sample; use std::sample instead. See ↵Marshall Clow2018-02-011-41/+0
| | | | | | https://libcxx.llvm.org/TS_deprecation.html llvm-svn: 323979
* Implement C++17 std::sample.Eric Fiselier2016-08-281-3/+5
| | | | | | | | 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
* Mark LWG 2716 as complete - shuffle and sample disallows lvalue URNGs.Eric Fiselier2016-08-281-0/+3
| | | | | | | | | | | 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
* Implement std::experimental::sample.Evgeniy Stepanov2015-05-131-0/+36
Following specification in "C++ Extensions for Library Fundamentals": http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4480.html#alg.random.sample llvm-svn: 237264
OpenPOWER on IntegriCloud