Do we have C++20 ranges library in GCC 9?

Am I missing something?

No.

And will the ranges library arrive at some point of time with the gcc-9 series?

It’s possible but seems unlikely. This did not happen. The first release to support Ranges in gcc was gcc 10.1.


Ranges is an enormous library. It’s still 2019, the official C++20 standard still won’t even be shipped for another year and a half. It’ll take a while for it to get implemented in the major standard library implementations. We’ll just have to wait.

If you want to start using Ranges, you can use Range-v3 (specifically the v1.0-beta branch) or you can find an implementation of C++20 Ranges at cmcstl2 (this is Casey Mysterious Carter’s implementation).

You can also periodically check cppreference’s compiler/library tracking page (which at the time of writing shows no libraries having implemented the One Ranges proposal, but nevertheless does show quite a few C++20 features as having been implemented by the various library vendors).

Leave a Comment

File not found.