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|
 Return value
The nth successor of iterator it.
ForwardIt additionally meets the requirements of LegacyRandomAccessIterator, complexity is constant.
 Possible implementation
Although the expression ++c.begin() often compiles, it is not guaranteed to do so: c.begin() is an rvalue expression, and there is no LegacyBidirectionalIterator 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.
 See also
| decrement an iterator |
| advances an iterator by given distance |