2016-07-15 Edward Smith-Rowland <3dw4rd@verizon.net>
commit3c0283aab11e7412192754637465494610902300
authoremsr <emsr@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Jul 2016 17:16:32 +0000 (15 17:16 +0000)
committeremsr <emsr@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Jul 2016 17:16:32 +0000 (15 17:16 +0000)
tree54ebeb5d20114eb85cee86260ec2b09fada95261
parentfcf32c0aa3dd3d5c9b258db62e1a7e9f342e2b43
2016-07-15  Edward Smith-Rowland  <3dw4rd@verizon.net>

Implement C++17 P0025 clamp.
* include/bits/algorithmfwd.h: Declare clamp overloads.
* include/bits/stl_algo.h: Implement clamp.  Feature __cpp_lib_clamp.
* testsuite/25_algorithms/clamp/1.cc: New test.
* testsuite/25_algorithms/clamp/2.cc: New test.
* testsuite/25_algorithms/clamp/constexpr.cc: New test.
* testsuite/25_algorithms/clamp/requirements/explicit_instantiation/
1.cc: New test.
* testsuite/25_algorithms/clamp/requirements/explicit_instantiation/
pod.cc: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238383 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/algorithmfwd.h
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/testsuite/25_algorithms/clamp/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/clamp/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/clamp/constexpr.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/clamp/requirements/explicit_instantiation/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/clamp/requirements/explicit_instantiation/pod.cc [new file with mode: 0644]