Commit 6bfcbf0d by Nathan Myers Committed by Paolo Carlini

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
parent 16c1c158
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>
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment