std::generator<Ref,V,Allocator>:: operator=
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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)
|
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
| Member functions | ||||
|
generator::operator=
|
||||
| promise_type | ||||
| Iterator | ||||
|
generator
&
operator
=
(
generator other
)
noexcept
;
|
(C++23以降) | |
ジェネレータオブジェクトの内容を置き換えます。以下と同等です:
std
::
swap
(
coroutine_
,
other.
coroutine_
)
;
std
::
swap
(
active_
,
other.
active_
)
;
目次 |
パラメータ
| その他 | - | 移動元となる別のジェネレータ |
戻り値
* this
計算量
| このセクションは不完全です |
注記
以前に other から取得したイテレータは無効化されません - それらは * this へのイテレータになります。
この代入演算子は技術的には
copy assignment operator
ですが、
std::generator
はmove assignableのみです。
例
|
このセクションは不完全です
理由: 例がありません |