◐ Shell
clean mode source ↗

std::front_insert_iterator::operator= - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

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

(1)

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

(2)

Insere o value valor dado ao recipiente.

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->push_front(value)

2) Results in container->push_front(std::move(value))

Parâmetros

value -

o valor a ser inserido

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.

Valor de retorno

*this

Exemplo