Skip to content

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

Open
jerryzhenleicai wants to merge 1 commit intojscheiny:masterfrom
jerryzhenleicai:master
Open

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

Conversation

@jerryzhenleicai
Copy link

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