4

According to cppreference, all numeric algorithms under header <numeric> didn't get ranges versions in C++20. Are there reasons?

underscore_d
  • 6,309
  • 3
  • 38
  • 64
康桓瑋
  • 33,481
  • 5
  • 40
  • 90
  • 2
    The proposals to add this just didn't make it through the standardization process in time for c++20. They'll be added eventually. – cigien Jul 09 '20 at 14:42
  • 2
    There's a lot of things to rangify. If that had been a condition for adding ranges, they very likely would not have made it into C++20. – StoryTeller - Unslander Monica Jul 09 '20 at 14:44
  • 1
    @cigien, so the parallel version of C++20 range-based algorithms will also be added eventually? – 康桓瑋 Jul 09 '20 at 14:46
  • Assuming there are no issues with those features, and there are people willing to take the time to write these proposals, then sure :) – cigien Jul 09 '20 at 14:47
  • 3
    Are you asking about constrained, range-based, and/or parallelised versions? It's becoming less clear. The existing non-range ones could in theory be constrained using concepts, and paralellism is orthogonal to whether or not the algorithm is range.based. – underscore_d Jul 09 '20 at 14:50
  • 1
    http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1813r0.pdf – metalfox Jul 10 '20 at 11:16

0 Answers0