Contents Menu Expand Light mode Dark mode Auto light/dark mode
现代 C++ 文档
现代 C++ 文档

Contents:

  • C++20 协程
    • 理解 co_await 运算符
    • 理解 promise_type
  • Execution
Back to top

C++20 协程#

Contents:

  • 理解 co_await 运算符
    • 编译器与库的交互
    • 辨析 Awaiters & Awaitables
  • 理解 promise_type
    • 协程初始挂起点(The initial-suspend point)
    • 通过 co_return 从协程返回
    • 协程最终挂起点(The final-suspend point)
    • 编译器选择适当的 promise_type 的原则

协程相关文档#

Next
理解 co_await 运算符
Previous
Home
Copyright © 2023, modnarshen
Made with Sphinx and @pradyunsg's Furo
On this page
  • C++20 协程
    • 协程相关文档