cpp/iterator/istreambuf iterator

is a single-pass input iterator that reads successive characters from the std object for which it was constructed.

The default-constructed is known as the end-of-stream iterator. When a valid reaches the end of the underlying stream, it becomes equal to the end-of-stream iterator. Dereferencing or incrementing it further invokes undefined behavior.

The member type is usually  (see below).