2007-01-25 Nathan Myers <ncm@cantrip.org>
* include/bits/streambuf_iterator.h (istreambuf_iterator<>::equal):
Simplify.
From-SVN: r121170
+2007-01-25 Nathan Myers <ncm@cantrip.org>
+
+ * include/bits/streambuf_iterator.h (istreambuf_iterator<>::equal):
+ Simplify.
+
2007-01-24 Steve LoBasso <slobasso@yahoo.com>
Paolo Carlini <pcarlini@suse.de>
/// Return true both iterators are end or both are not end.
bool
equal(const istreambuf_iterator& __b) const
- {
- const bool __thiseof = _M_at_eof();
- const bool __beof = __b._M_at_eof();
- return ((__thiseof && __beof) || (!__thiseof && !__beof));
- }
+ { return _M_at_eof() == __b._M_at_eof(); }
private:
int_type