◐ Shell
clean mode source ↗

std::insert_iterator::operator= — cppreference.com

De cppreference.com

<metanoindex/>

<metanoindex/>

<tbody> </tbody>

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

(1)

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

(2)

Insère le value valeur donnée au conteneur .

Original:

Inserts the given value value to the container.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

1) Results in container->insert(iter, value); ++iter;

2) Results in container->insert(iter, std::move(value)); ++iter;

Paramètres

value -

la valeur à insérer

Original:

the value to insert

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Retourne la valeur

*this

Exemple