std::istreambuf_iterator<CharT,Traits>::operator++, operator++(int)
来自cppreference.com
< cpp | iterator | istreambuf iterator
迭代器库
迭代器概念 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
迭代器原语 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
算法概念与工具 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
间接可调用概念 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
常用算法要求 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
工具 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
迭代器适配器 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
std::istreambuf_iterator
成员函数 | ||||
istreambuf_iterator::operator++istreambuf_iterator::operator++(int) | ||||
非成员函数 | ||||
(C++20 前) |
istreambuf_iterator& operator++(); | (1) | |
/* proxy */ operator++( int ); | (2) | |
通过调用 sbuf_->sbumpc() 推进迭代器,其中 sbuf_
是存储的指向流缓冲的指针。
若迭代器是流尾迭代器则行为未定义。
参数
(无)
返回值
1)*this
2) 保有经由 operator*() 获得的当前字符和
sbuf_
指针的 proxy
对象。以 operator*
解引用 proxy
对象将产生存储的字符。 名称
proxy
仅用于阐释。异常
可能会抛出由实现定义的异常。