Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      From cppreference.com
      <cpp‎ |coroutine‎ |generator
       
       
      Utilities library
       
      Coroutine support
      Coroutine traits
      Coroutine handle
      No-op coroutines
      Trivial awaitables
      Range generators
      (C++23)
       
      Ranges library
      Range adaptors
       
       
      /*iterator*/ begin();
      (since C++23)

      Pushescoroutine_ into*active_ stack, then evaluatescoroutine_.resume().

      Before invocation ofbegin() thecoroutine_ must refer to a coroutine suspended at itsinitial suspend point.

      [edit]Return value

      An iterator whosecoroutine_ member refers to the same coroutine ascoroutine_ does.

      [edit]Notes

      It is an undefined behavior to callbegin() more than once on the samegenerator object.

      [edit]Example

      This section is incomplete
      Reason: no example
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/coroutine/generator/begin&oldid=176248"

      [8]ページ先頭

      ©2009-2025 Movatter.jp