[libc++][ranges] Implement `ranges::sample`.
authorKonstantin Varlamov <varconst@apple.com>
Wed, 3 Aug 2022 05:33:12 +0000 (22:33 -0700)
committerKonstantin Varlamov <varconst@apple.com>
Wed, 3 Aug 2022 05:34:23 +0000 (22:34 -0700)
commit6bdb64223473585f783572c9fbf0673b4b324a35
tree4e066cf856c4b21fcd5eb7002887f95eb8ec1479
parent93172c1c2b10066628c85c9ff78eb882222fb304
[libc++][ranges] Implement `ranges::sample`.

Differential Revision: https://reviews.llvm.org/D130865
14 files changed:
libcxx/docs/Status/RangesAlgorithms.csv
libcxx/include/CMakeLists.txt
libcxx/include/__algorithm/iterator_operations.h
libcxx/include/__algorithm/ranges_sample.h [new file with mode: 0644]
libcxx/include/__algorithm/ranges_shuffle.h
libcxx/include/__algorithm/sample.h
libcxx/include/__algorithm/uniform_random_bit_generator_adaptor.h [new file with mode: 0644]
libcxx/include/algorithm
libcxx/include/module.modulemap.in
libcxx/test/libcxx/private_headers.verify.cpp
libcxx/test/std/algorithms/alg.modifying.operations/alg.random.sample/ranges_sample.pass.cpp [new file with mode: 0644]
libcxx/test/std/algorithms/ranges_robust_against_omitting_invoke.pass.cpp
libcxx/test/std/algorithms/ranges_robust_against_proxy_iterators.pass.cpp
libcxx/test/std/library/description/conventions/customization.point.object/niebloid.compile.pass.cpp