C++20 Coroutines helper/example library.
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
#include <coroutine/coroutine.hpp>
Define a coroutine generator that yields integers from start to end.
#include <coroutine/coroutine.hpp>
#include <iostream>
coroutine::generator<int> range(int start, int end) {
for (int i = start; i < end; ++i)
co_yield i;
}
int main() {
for (int v : range(0, 5))
std::cout << v << ' ';
std::cout << std::endl;
return 0;
}
Debug
Known footguns
No known footguns recorded.
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.
Resources
No resource links recorded.