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.