C++ keyword: co_return (since C++20)
Usage
Notes
| Feature-test macro | Value | Std | Feature |
|---|---|---|---|
__cpp_impl_coroutine | 201902L | (C++20) | Coroutines (compiler support) |
See also
| (since C++17) |
| (since C++23) |
-
switchstatement:switch,case -
default(as case label declaration) etc:default -
gotostatement:goto -
continuestatement:continue -
breakstatement:break -
returnstatement:return -
do-whileloop andwhileloop:do,while -
forloop and range-basedforloop:for -
coroutines:
co_await,co_yield
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/keyword/co_return