C++ STL advance 和next 区别
作者:互联网
std::advance
- modifies its argument
- returns nothing
- works on input iterators or better (or bi-directional iterators if a negative distance is given)
std::next
- leaves its argument unmodified
- returns a copy of the argument, advanced by the specified amount
- works on forward iterators or better (or bi-directional iterators if a negative distance is given))
https://stackoverflow.com/questions/15017065/whats-the-difference-between-stdadvance-and-stdnext
标签:advance,given,directional,STL,argument,C++,negative,iterators,its 来源: https://www.cnblogs.com/MalcolmMeng/p/10816036.html