std::generator<Ref,V,Allocator>:: ~generator
From cppreference.net
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Coroutine support
| Coroutine traits | ||||
|
(C++20)
|
||||
| Coroutine handle | ||||
|
(C++20)
|
||||
| No-op coroutines | ||||
|
(C++20)
|
||||
|
(C++20)
|
||||
| Trivial awaitables | ||||
|
(C++20)
|
||||
|
(C++20)
|
||||
| Range generators | ||||
|
(C++23)
|
Ranges library
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
std::generator
| Member functions | ||||
|
generator::~generator
|
||||
| promise_type | ||||
| Iterator | ||||
|
~generator
(
)
;
|
(C++23以降) | |
ジェネレータオブジェクトを破棄します。
与えられた
coroutine_
が基盤となるコルーチンオブジェクトである場合、以下と等価です:
if (coroutine_) coroutine_.destroy();
ルートジェネレータを破棄すると、再帰的に yield されたジェネレータの所有権が yield 元ジェネレータのコルーチンフレーム内の awaitable オブジェクトによって保持されているため、yield されたジェネレータのスタック全体が実質的に破棄されることに注意してください。
計算量
| このセクションは不完全です |
例
|
このセクションは不完全です
理由: 例がありません |