Struct null_frame_t¶
void retrun for coroutine functionMore...
#include <return.h>
Classes¶
| Type | Name |
|---|---|
| struct | promise_type |
Detailed Description¶
Note:
The library supports coroutine_traits specialization for nullptr_t. This type is for GCC, which doesn't allow non-struct return.
// for MSVC, Clang, GCC
auto coroutine_1() -> null_frame_t {
co_await suspend_never{};
}
// GCC doesn't allow this! (`nullptr_t` is not class)
auto coroutine_2() -> nullptr_t {
co_await suspend_never{};
}
The documentation for this class was generated from the following file interface/coroutine/return.h