Skip to content

Allow finite Generator streams by indicating end of stream via a std::out_of_range exception#19

Open
jerryztsai wants to merge 1 commit into
jscheiny:masterfrom
jerryztsai:master
Open

Allow finite Generator streams by indicating end of stream via a std::out_of_range exception#19
jerryztsai wants to merge 1 commit into
jscheiny:masterfrom
jerryztsai:master

Conversation

@jerryztsai

Copy link
Copy Markdown

I'd like to be able to have a generator stream that's not infinite.
It's natural to use std::out_of_range to signal the end as most vector based generator function will throw std::out_of_range when the index surpass end of vector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant