jeudi 19 août 2021

Is iteration order of two unordered_set-s with same contents guaranteed to be the same

If I have two unordered_set variables with same contents (if sorted), but created differently (say, first variable only had items inserted, second one had items inserted, erased, etc. in different order, but both variables ended up with same contents), will iterating over these two variables produce values in the same order?

PS. this question is different from similar questions on iterating same unordered set twice.

Aucun commentaire:

Enregistrer un commentaire