mercredi 24 février 2016

std::vector append with std::move [duplicate]

This question already has an answer here:

Is it possible to append to an std::vector another std::vector by moving the second into the first? If so, how?

I'm only aware of this syntax to perform the append operation:

vec_a.insert( vec_a.end(), vec_b.begin( ), vec_b.end( ) );

Aucun commentaire:

Enregistrer un commentaire