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.
commit 0e350380ee69c6b719362fbd9fbb6a6d0854f6ec
Author: Jonathan Wakely <jwak...@redhat.com>
Date: Mon Jun 25 17:42:09 2018 +0100
* doc/xml/manual/status_cxx2017.xml: Document N4531 status.
diff --git a/libstdc++-v3/doc/xml/manual/status_cxx2017.xml b/libstdc++-v3/doc/xml/manual/status_cxx2017.xml
index aa0914cff72..a77653a3ab4 100644
--- a/libstdc++-v3/doc/xml/manual/status_cxx2017.xml
+++ b/libstdc++-v3/doc/xml/manual/status_cxx2017.xml
@@ -954,6 +954,16 @@ and test for <code>__STDCPP_MATH_SPEC_FUNCS__ >= 201003L</code>.
<entry>Library Fundamentals 2 TS</entry>
</row>
+ <row>
+ <entry>
+ <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4531.html">
+ N4531
+ </link>
+ </entry>
+ <entry>std::rand replacement, revision 3</entry>
+ <entry>Y</entry>
+ <entry>Library Fundamentals 2 TS</entry>
+ </row>
</tbody>
</tgroup>