operator==,!= (std::istreambuf_iterator<CharT,Traits>)
| Iterator concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator primitives | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Algorithm concepts and utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Indirect callable concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Common algorithm requirements | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Non-member functions | ||||
|
operator==
operator!=
(until C++20)
|
|
定义于头文件
<iterator>
|
||
|
template
<
class
CharT,
class
Traits
>
bool
operator
==
(
const
std::
istreambuf_iterator
<
CharT,Traits
>
&
lhs,
|
(1) | |
|
template
<
class
CharT,
class
Traits
>
bool
operator
!
=
(
const
std::
istreambuf_iterator
<
CharT,Traits
>
&
lhs,
|
(2) | (C++20 前) |
|
friend
bool
operator
==
(
const
istreambuf_iterator
&
lhs,
std:: default_sentinel_t ) ; |
(3) | (C++20 起) |
检查 lhs 和 rhs 是否同时有效或同时无效,无论它们使用的流缓冲区对象为何。
此函数对普通的 非限定查找 或 限定查找 不可见,仅当 std::istreambuf_iterator<CharT,Traits> 作为实参的关联类时,才能通过 实参依赖查找 找到。
|
|
(C++20 起) |
参数
| lhs, rhs | - | 待比较的流缓冲区迭代器 |
返回值
异常
可能抛出实现定义的异常。