[Development] QHash iteration vs std::unordered_map
thiago.macieira at intel.com
Mon Apr 17 01:00:39 CEST 2017
Em domingo, 16 de abril de 2017, às 15:09:16 PDT, Mark Gaiser escreveu:
> On Sun, Apr 16, 2017 at 5:53 PM, Thiago Macieira
> <thiago.macieira at intel.com> wrote:
> > Em domingo, 16 de abril de 2017, às 08:05:21 PDT, Mark Gaiser escreveu:
> >> That again makes me wonder, why did Qt diverge from that?
> > We didn't diverge. We never had that. The Qt style predates the Standard
> > Library having relevance in Qt. When the first QHash-like class was added,
> > it was just like that.
> With regards to QHash vs std::unordered_map, yes.
> But STL also has std::map which certainly predates Qt and also gives
> back an std::pair.
I was referring to std::map and QDict.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development