-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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 compile
std::next(c.begin()); // surely compilesReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels