[PATCH 2/5] libstdc++: Move ranges algos used by <ranges> into ranges_util.h
Jonathan Wakely
jwakely.gcc@gmail.com
Thu Jun 17 18:14:47 GMT 2021
On Thu, 17 Jun 2021, 16:47 Patrick Palka via Libstdc++, <
libstdc++@gcc.gnu.org> wrote:
> The <ranges> header defines simplified copies of some ranges algorithms
> in order to avoid including the entirety of ranges_algo.h. A subsequent
> patch is going to want to use ranges::search in <ranges> as well, but
> that algorithm is more complicated compared to the other copied ones.
>
> So rather than additionally copying ranges::search into <ranges>, this
> patch splits out all the ranges algos used by <ranges> (including
> ranges::search) from ranges_algo.h to ranges_util.h, and deletes the
> simplified copies in <ranges>. This seems like the best place for
> these algorithms, as ranges_util.h is included only from <ranges> and
> ranges_algo.h.
>
OK, thanks.
More information about the Libstdc++
mailing list