generator( const generator& ) = delete;
(1) (since C++23)generator( generator&& other ) noexcept;
(2) (since C++23)Constructs a generator
.
1) The copy-constructor is deleted.
2)The move-constructor that initializes the underlying
coroutine_
with
std::exchange(other.coroutine_, {}), and the underlying stack of coroutine handles (
active_
) with
std::exchange(other.active_, nullptr). Note, that the iterators, previously obtained from
other, are not invalidated, but become iterators into
*this.
[edit] Parameters other - a generator object to be moved in [edit] ExampleRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4