operator+(std::move_iterator)

Header: <iterator>

Returns the iterator it incremented by n.

# Declarations

template< class Iter >
move_iterator<Iter> operator+
( typename move_iterator<Iter>::difference_type n,
const move_iterator<Iter>& it );

(since C++11) (constexpr since C++17) (until C++20)

template< class Iter >
constexpr move_iterator<Iter> operator+
( std::iter_difference_t<Iter> n, const move_iterator<Iter>& it );

(since C++20)

# Parameters

# Return value

it + n

# Example

This section is incompleteReason: no example

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 3293C++20the non-member operator+ was constrained torequire it + n is well-formed and has type Iterchanged toit.base() + n

# See also