A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/iterator/move_iterator/operator_plus-free/ below:

function template

<iterator>

std::operator+ (move_iterator)
template <class Iterator>  move_iterator<Iterator> operator+ (         typename move_iterator<Iterator>::difference_type n,         const move_iterator<Iterator>& m_it);

Addition operator

Returns a move iterator pointing to the element located n positions away from the element pointed to by m_it.

The function returns the same as: m_it+n (see move_iterator::operator+).



Parameters
n
Number of elements to offset.
Member type difference_type is an alias of Iterator's own difference type.
m_it
Move iterator.

Return value An iterator pointing to the element n positions away from m_it.

Data races The arguments are accessed.
The iterator returned can be used to access or modify elements.

Exception safety Provides the same level of guarantee as operator+ applied on Iterator.

See also
move_iterator::operator-
Subtraction operator (public member function)
move_iterator::operator++
Increment iterator position (public member function)
move_iterator::operator+=
Advance iterator (public member function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4