std::generator<Ref,V,Allocator>::promise_type::return_void
来自cppreference.com
< cpp | coroutine | generator | promise type
| void return_void() const noexcept {} |
(C++23 起) | |
无操作。使用生成器的用户提供协程无法通过 co_return 运算符或抵达协程体末尾来发出值。