You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest we use the standard functions std::next, std::prev, std::advance and so on instead of operators like ++, --, and += to perform iterator arithmetic. In particular, std::next and std::prev are guaranteed to work on rvalues while the operators may not:
++c.begin(); // may not compilestd::next(c.begin()); // surely compiles
Activity