Re: [PATCH 1/2] libstdc++: P1243R4 Rangify new algorithms

2020-02-18 Thread Jonathan Wakely
On 17/02/20 17:00 -0500, Patrick Palka wrote: This adds rangified overloads for for_each_n, sample and clamp as per P1243R4. libstdc++-v3/ChangeLog: P1243R4 * include/bits/ranges_algo.h (for_each_n_result, __for_each_n_fn, for_each_n, __sample_fn, sample, __clamp_fn, cla

[PATCH 1/2] libstdc++: P1243R4 Rangify new algorithms

2020-02-17 Thread Patrick Palka
This adds rangified overloads for for_each_n, sample and clamp as per P1243R4. libstdc++-v3/ChangeLog: P1243R4 * include/bits/ranges_algo.h (for_each_n_result, __for_each_n_fn, for_each_n, __sample_fn, sample, __clamp_fn, clamp): New. * testsuite/25_algorithms/clam