streambuf_iterator.h (istreambuf_iterator<>::equal): Simplify.

2007-01-25  Nathan Myers  <ncm@cantrip.org>

	* include/bits/streambuf_iterator.h (istreambuf_iterator<>::equal):
	Simplify.

From-SVN: r121170
This commit is contained in:
Nathan Myers 2007-01-25 13:08:51 +00:00 committed by Paolo Carlini
parent 16c1c158d8
commit 6bfcbf0d48
2 changed files with 6 additions and 5 deletions

View file

@ -1,3 +1,8 @@
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>

View file

@ -157,11 +157,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
/// 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