* include/bits/streambuf_iterator.h (istreambuf_iterator<>::equal):
Simplify.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121170
138bc75d-0d04-0410-961f-
82ee72b054a4
+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