samedi 29 octobre 2016

Comparing unordered_map vs unordered_set

First of all, what is the main difference between them?

The only thing i've found is that unordered_set has no operator []. How should i access an element in unordered_set, since there is no []?

Which container is using random access to memory(or both)?

And which one of them faster in any sense or using less memory?

Aucun commentaire:

Enregistrer un commentaire