请问一下一个区间只能有一个input_iterator是什么意思啊
开始看stl的书,这一句不懂,书上的adjacent_find得用2个相邻的迭代器,说的是只能用forward_iterator不能用input_iterator,因为个区间只能有一个input_iterator,求解。
[解决办法]
Input iterators are iterators especially designed for sequential input operations, where each value pointed by the iterator is read only once and then the iterator is incremented.
一个值只能被读一次,比较时要读取下一个值,读取过后原先的迭代器就会跳过一个值