Registry / async / coroutine

coroutine

JSON →
library1.5.0vcpkgunverified

C++20 Coroutines helper/example library.

vcpkg install coroutine
INSTALL
IMPORT
SIG · COROUTINE
C
coroutine
asynccppv1.5.0
harness data pending
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.

coroutine/coroutine.hpp
#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 issues

No known issues recorded.

Upgrade
Version history
1.5.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
32
Resources

No resource links recorded.

coroutine — pip install coroutine · libregistry