Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      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
       
       
      ~generator();
      (since C++23)

      Destructs the generator object.

      Givencoroutine_ as the underlying coroutine object, equivalent to:

      if(coroutine_)    coroutine_.destroy();

      Note, that destroying the root generator effectively destroys the entire stack of yielded generators, because the ownership of recursively yielded generators is held in awaitable objects in the coroutine frame of the yielding generator.

      [edit]Complexity

      This section is incomplete

      [edit]Example

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

      [8]ページ先頭

      ©2009-2026 Movatter.jp