Implement C++17 P0025 clamp.
authorEdward Smith-Rowland <3dw4rd@verizon.net>
Fri, 15 Jul 2016 17:16:32 +0000 (17:16 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Fri, 15 Jul 2016 17:16:32 +0000 (17:16 +0000)
commit4db1cb44be3a9121ccbd517824cb280bbf62d833
tree54ebeb5d20114eb85cee86260ec2b09fada95261
parent4a1248da3997c0d1120cf283e4765e42a8e94dd8
Implement C++17 P0025 clamp.

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.

From-SVN: r238383
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]