std::generator<Ref,V,Allocator>::promise_type::initial_suspend
来自cppreference.com
< cpp | coroutine | generator | promise type
| std::suspend_always initial_suspend() const noexcept; |
(C++23 起) | |
指出 std::generator 总是延迟启动(处于暂停状态)。
等价于 return std::suspend_always{};。
[编辑] 参数
(无)
[编辑] 返回值
awaitable 对象。