std::generator<Ref,V,Allocator>::begin
来自 cppreference.cn
/*iterator*/ begin(); |
(自 C++23 起) | |
将 coroutine_
推入 *active_
堆栈,然后求值 coroutine_.resume()。
在调用 begin()
之前,coroutine_
必须引用在其初始挂起点处挂起的协程。
[编辑] 返回值
一个迭代器,其 coroutine_
成员引用与 coroutine_
相同的协程。
[编辑] 注解
在同一个 generator
对象上多次调用 begin()
是未定义行为。
[编辑] 示例
本节尚不完整 原因:没有示例 |