[Development] implicit sharing and iterators in qt containers

Thiago Macieira thiago.macieira at intel.com
Tue Aug 1 01:02:55 CEST 2017


On segunda-feira, 31 de julho de 2017 15:35:15 PDT Mandeep Sandhu wrote:
> Well, if fast lookup isn't necessary, then I guess such a "container" is
> not really needed, and one can simply implement it using a
> QLinkedList<QPair<Key key, Value value>> (maybe with some added
> restrictions).

And that's what it should be (though QVector, not QLinkedList) and simply add 
the convenience functions for iteration and searching by key.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list