24 Iterators library [iterators]

24.6 Stream iterators [stream.iterators]

24.6.3 Class template istreambuf_iterator [istreambuf.iterator]

24.6.3.5 istreambuf_iterator::equal [istreambuf.iterator::equal]

bool equal(const istreambuf_iterator<charT,traits>& b) const;

Returns: true if and only if both iterators are at end-of-stream, or neither is at end-of-stream, regardless of what streambuf object they use.