std::istreambuf_iterator<CharT,Traits>::equal
來自 cppreference.com
< cpp | 迭代器 | istreambuf_iterator
bool equal( const istreambuf_iterator& it ) const; |
||
檢查 *this 和 it 是否都有效,或者都無效,而不管它們使用的流緩衝區物件。
目錄 |
[編輯] 引數
it | - | 另一個流緩衝區迭代器,用於比較 |
[編輯] 返回值
如果 *this 和 it 都有效,或者都無效,則返回 true,否則返回 false。
[編輯] 異常
可能丟擲實現定義的異常。
[編輯] 缺陷報告
下列更改行為的缺陷報告追溯地應用於以前出版的 C++ 標準。
缺陷報告 | 應用於 | 釋出時的行為 | 正確的行為 |
---|---|---|---|
LWG 110 | C++98 | 簽名是 bool equal(istreambuf_iterator& it) | 添加了 const |
LWG 1126 | C++98 | LWG issue 110 未正確解決,留下了 引數型別為 istreambuf_iterator& |
添加了 const |