W3cubDocs

/C++

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

std::default_sentinel_t end() const noexcept;
(since C++23)

Equivalent to return std::default_sentinel.

Return value

a sentinel.

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/coroutine/generator/end