24 Iterators library [iterators]

24.5 Iterator adaptors [predef.iterators]

24.5.2 Insert iterators [insert.iterators]

24.5.2.6 insert_iterator operations [insert.iter.ops]

24.5.2.6.2 insert_iterator::operator= [insert.iter.op=]

insert_iterator<Container>& operator=(const typename Container::value_type& value);

Effects:

iter = container->insert(iter, value);
++iter;

Returns: *this.

insert_iterator<Container>& operator=(typename Container::value_type&& value);

Effects:

iter = container->insert(iter, std::move(value));
++iter;

Returns: *this.