RSSAmplifier

Lu’s blog · Mar 22, 2025

A Mental Model for C++ Coroutine

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

C++ coroutine is not a library that is ready to go (e.g. std::vector). It is not even a trait (think of Rust’s Future trait) that library writers or users can implement (or the compiler generates for you in the case of Rust). C++ coroutine is a specification that defines a set of customization points that library writers implement in order to get a functional coroutine.

Read on /cpp-coro/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.