tl-generator-tests/0.4.0

[full]

ranges-compatible generator type built on C++20 coroutines

Single-header, ranges-compatible generator type built with C++20 coroutines.

Documentation Status

A generator allows implementing sequence producers which are terse and avoid creating the whole sequence in memory.

For example, if you were to need a sequence of the first n integers, you could generate a std::vector of them. This implementation would be simple, but would have to produce the whole sequence in memory. To avoid this, you could instead write an iterator or range which generates them lazily. However, writing iterators and ranges comes with a lot of boilerplate. Generators have the benefits of both:

... More
version 0.4.0
license CC0-1.0 UniversalCreative Commons Zero v1.0 Universal
repository https://pkg.cppget.org/1/alpha
download tl-generator-tests-0.4.0.tar.gz
sha256 69b6131e6040377977100b96427af361dc05a0ad8aaee554018e29c8df510bc8
project tl
doc-url tl.tartanllama.xyz/en/latest/
package-url github.com/build2-packaging/build2-tl
package-email wmbat-dev@protonmail.com

Depends (1)

catch2 ^2.13.7

Requires (1)

c++ >= 20

Reviews

fail 0
pass 1