[libstdc++] Add C++17clamp

Jonathan Wakely jwakely@redhat.com
Fri Jul 15 07:34:00 GMT 2016


On 14/07/16 19:50 -0400, Ed Smith-Rowland wrote:
>Here is an implementation of P0025
>An algorithm to "clamp" a value between a pair of boundary values.
>
>Testing is almost finished - looks good so far.
>
>OK if testing passes?

OK for trunk, thanks.

>I didn't see a feature test in any of the SD-6 papers or P0025.

p0096r3 proposes __cpp_lib_clamp = 201603.



More information about the Libstdc++ mailing list