"reserve" usually means "ensure you can hold count *total* elements", and not "prepare to read count *extra* elements". Are you sure it's not the implementation itself that is wrong?

That said, we are dealing with a stream, and not a container, so I'm unsure...