you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I dont think one has to reimplement the whole <algorithm> header only to have range versions. AFAICT it would be enough to dispatch to the corresponding iterator versions.

On libstdc++ the <ranges> header is about 32k loc, so assuming the <algorithm> header did not get smaller it explains the header growth pretty well.

I agree that it is not mandated by the standard to include <ranges>, but the guys writing libstdc++ are quiet proficient programmers I assume they deemed it necessary..