W3cubDocs

/C++

std::back_insert_iterator<Container>::operator++

back_insert_iterator& operator++();
(until C++20)
constexpr back_insert_iterator& operator++();
(since C++20)
back_insert_iterator operator++( int );
(until C++20)
constexpr back_insert_iterator operator++( int );
(since C++20)

Does nothing. These operator overloads are provided to satisfy the requirements of LegacyOutputIterator. They make it possible for the expressions *iter++=value and *++iter=value to be used to output (insert) a value into the underlying container.

Parameters

(none).

Return value

*this.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/iterator/back_insert_iterator/operator%2B%2B