Talk:cpp/iterator/istream iterator

The example here is not very good. If the string stream of the second part does not include any even numbers then the last number will be printed.
 * It's actually undefined behaviour to dereference an end iterator. Moot point though, as there is indeed an even number; circumstances would be different if those numbers came from e.g. std or a file --Ybab321 (talk) 01:17, 1 July 2021 (PDT)