Defined in header
template< class ForwardIt >
| (since C++11)
template< class InputIt >
constexpr InputIt next(
Return the nth successor of iterator it.
|n||-||number of elements to advance|
The nth successor of iterator it.
Although the expression ++c.begin() often compiles, it is not guaranteed to do so: c.begin() is an rvalue expression, and there is no
BidirectionalIterator requirement that specifies that increment of an rvalue is guaranteed to work. In particular, when iterators are implemented as pointers, ++c.begin() does not compile, while std::next(c.begin()) does.
| decrement an iterator |
| advances an iterator by given distance |