range-v3 (devel/range-v3) Updated: 1 year, 2 months ago Add to my watchlist

Range library for C++14/17/20, basis for C++20's std::ranges.

Range library for C++14/17/20. This code was the basis of a formal proposal to add range support to the C++ standard library. That proposal evolved through a Technical Specification, and finally into P0896R4 The One Ranges Proposal which was merged into the C++20 working drafts in November 2018. Ranges are an extension of the Standard Template Library that makes its iterators and algorithms more powerful by making them composable. Unlike other range-like solutions which seek to do away with iterators, in range-v3 ranges are an abstraction layer on top of iterators. Range-v3 is built on three pillars: Views, Actions and Algorithms. The algorithms are the same as those with which you are already familiar in the STL, except that in range-v3 all the algorithms have overloads that take ranges in addition to the overloads that take iterators. Views are composable adaptations of ranges where the adaptation happens lazily as the view is iterated. And an action is an eager application of an algorithm to a container that mutates the container in-place and returns it for further processing. Views and actions use the pipe syntax (e.g., rng | adapt1 | adapt2 | ...) so your code is terse and readable from left to right. Development Status: This code is fairly stable, well-tested, and suitable for casual use, although currently lacking documentation. In general, no promise is made about support or long-term stability. This code will evolve without regard to backwards compatibility

Version: 0.12.0 License: MIT GitHub
Maintainers No Maintainer
Categories devel
Homepage https://ericniebler.github.io/range-v3
Platforms any
Variants
  • debug (Enable debug binaries)

"range-v3" depends on

build (3)

Ports that depend on "range-v3"



Port Health:

Loading Port Health

Installations (30 days)

4

Requested Installations (30 days)

3