Streams
Streams copied to clipboard
Allow finite Generator streams by indicating end of stream via a std::out_of_range exception
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.