Implement C++17 std::sample.
authorEric Fiselier <eric@efcs.ca>
Sun, 28 Aug 2016 22:14:37 +0000 (22:14 +0000)
committerEric Fiselier <eric@efcs.ca>
Sun, 28 Aug 2016 22:14:37 +0000 (22:14 +0000)
commite7154709e02a388db2d8dce91860f2452f4145e0
treed7cd66939217540b5b74d9a8484da38ed3179f42
parent040411762fde039dcd1a7f513d95d01266bfa94d
Implement C++17 std::sample.

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
libcxx/include/algorithm
libcxx/include/experimental/algorithm
libcxx/test/std/algorithms/alg.modifying.operations/alg.random.sample/sample.fail.cpp [new file with mode: 0644]
libcxx/test/std/algorithms/alg.modifying.operations/alg.random.sample/sample.pass.cpp [new file with mode: 0644]
libcxx/test/std/algorithms/alg.modifying.operations/alg.random.sample/sample.stable.pass.cpp [new file with mode: 0644]
libcxx/test/std/experimental/algorithms/alg.random.sample/sample.fail.cpp
libcxx/test/support/test_iterators.h