mcpplibs.cmp
importA C++23 coroutine runtime project built with mcpp and C++ Modules
import mcpplibs.cmp;
Module name read from the upstream `export module` declaration in src/cmp.cppm.
mcpp add mcpplibs.cmp@0.1.0
Usage
From this repository's own test project — built and run by CI, not written for the website.
import std;
import mcpplibs.cmp;
using mcpplibs::cmp::RunLoop;
using mcpplibs::cmp::Task;
Task<int> scheduled_answer(RunLoop::Scheduler scheduler) {
co_await scheduler.schedule();
co_return 42;
}
int main() {
RunLoop loop {};
return loop.run(scheduled_answer(loop.get_scheduler())) == 42 ? 0 : 1;
}
tests/examples/cmp-module/tests/runtime.cpp · project tests/examples/cmp-module
Build · upstream manifest
- modules
mcpplibs.cmp- language
c++23- manifest version
0.1.0- dependencies
chriskohlhoff- source
https://raw.githubusercontent.com/mcpplibs/cmp/v0.1.0/mcpp.toml
Versions
| Version | Platforms | Mirrors | sha256 |
|---|---|---|---|
0.1.0 latest |
LinuxWindowsmacOS | source | 17ab5e1e8fde… |