Can std::vector move its data to another address at emplace_back() even though there is still unused space according to capacity()?
Is it guaranteed that std::vector only moves its data when size()==capacity() and calling push_back() or emplace_back() or can it do it otherwise also?
Aucun commentaire:
Enregistrer un commentaire