Streams icon indicating copy to clipboard operation
Streams copied to clipboard

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

Open jerryzhenleicai opened this issue 3 years ago • 0 comments

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.

jerryzhenleicai avatar Jul 12 '21 10:07 jerryzhenleicai