Namespaces
Variants

std::generator<Ref,V,Allocator>:: begin

From cppreference.net
Utilities library
Coroutine support
Coroutine traits
Coroutine handle
No-op coroutines
Trivial awaitables
Range generators
(C++23)
Ranges library
Range adaptors
/*iterator*/ begin ( ) ;
(C++23 이후)

coroutine_ * active_ 스택에 푸시한 후, coroutine_. resume ( ) 를 평가합니다.

begin() 호출 전에 coroutine_ 초기 일시 중단 지점 에서 일시 중단된 코루틴을 참조해야 합니다.

반환값

coroutine_ 멤버가 coroutine_ 가 참조하는 것과 동일한 코루틴을 참조하는 iterator.

참고 사항

동일한 generator 객체에서 begin() 를 두 번 이상 호출하는 것은 정의되지 않은 행동입니다.

예제