std::istreambuf_iterator<CharT,Traits>:: operator++, operator++ (int)
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::operator++
istreambuf_iterator::operator++(int)
|
||||
| Non-member functions | ||||
|
(until C++20)
|
|
istreambuf_iterator
&
operator
++
(
)
;
|
(1) | |
|
/* proxy */
operator
++
(
int
)
;
|
(2) | |
将迭代器前进,通过调用
sbuf_
-
>
sbumpc
(
)
,其中
sbuf_
是指向流缓冲区的存储指针。
若迭代器为流结束迭代器,则行为未定义。
参数
(无)
返回值
1)
*
this
2)
一个
proxy
对象,持有通过
operator*()
获取的当前字符以及
sbuf_
指针。通过
operator*
解引用
proxy
对象将得到存储的字符。
名称
proxy
仅用于说明目的。
异常
可能抛出实现定义的异常。