Define std::sample for C++17
authorJonathan Wakely <jwakely@redhat.com>
Wed, 12 Oct 2016 15:26:48 +0000 (16:26 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 12 Oct 2016 15:26:48 +0000 (16:26 +0100)
commite7722f110626223efb2d2d63e15bb4960c4f574b
tree944b7c7b02fd7b3c1602baffe85e41cb961c11eb
parentd73c92c9f2297c57153beced2475ed79e0d0736b
Define std::sample for C++17

* doc/xml/manual/status_cxx2017.xml: Add std::sample status.
* doc/html/*: Regenerate.
* include/experimental/algorithm (__sample): Move to bits/stl_algo.h
and into namespace std.
* include/bits/stl_algo.h (__sample): Define here. Fix invalid use
of input iterator. Defend against overloaded comma operator.
(sample): Define for C++17.
* testsuite/25_algorithms/sample/1.cc: New test.

From-SVN: r241062
libstdc++-v3/ChangeLog
libstdc++-v3/doc/html/manual/bugs.html
libstdc++-v3/doc/html/manual/status.html
libstdc++-v3/doc/xml/manual/status_cxx2017.xml
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/include/experimental/algorithm
libstdc++-v3/testsuite/25_algorithms/sample/1.cc [new file with mode: 0644]