[PATCH] Add experimental::sample and experimental::shuffle from N4531
Jonathan Wakely
jwakely@redhat.com
Mon Jun 25 16:42:00 GMT 2018
On 25/06/18 17:23 +0100, Jonathan Wakely wrote:
>The additions to <experimental/random> were added in 2015 but the new
>algorithms in <experimental/algorithm> were not. This adds them.
>
> * include/experimental/algorithm (sample, shuffle): Add new overloads
> using per-thread random number engine.
> * testsuite/experimental/algorithm/sample.cc: Simpify and reduce
> dependencies by using __gnu_test::test_container.
> * testsuite/experimental/algorithm/sample-2.cc: New.
> * testsuite/experimental/algorithm/shuffle.cc: New.
>
>Tested x86_64-linux, committed to trunk.
And this documents it in the manual.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 966 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20180625/72e72750/attachment.bin>
More information about the Libstdc++
mailing list