lundi 30 octobre 2017

are std::vector required to use move instead of copy?

Are std::vector required to use move instead of copy, by standard? Or this is purely implementation optimization?

If std::vector required to use move, at what conditions? Where these rules/conditions can be read?

I found this How to enforce move semantics when a vector grows? . But there are no answers about guarantees.

Aucun commentaire:

Enregistrer un commentaire