std::istreambuf_iterator<CharT,Traits>:: equal
From cppreference.net
<
cpp
|
iterator
|
istreambuf iterator
C++
Iterator library
| Iterator concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator primitives | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Algorithm concepts and utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Indirect callable concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Common algorithm requirements | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::istreambuf_iterator
| Member functions | ||||
|
istreambuf_iterator::equal
|
||||
| Non-member functions | ||||
|
(until C++20)
|
|
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 问题 110
未得到妥善解决,
参数类型仍为
istreambuf_iterator&
|
添加了 const 限定符 |