[Qt-interest] Qt Containers (or: why I must use STL)
Yves Bailly
yves.bailly at sescoi.fr
Tue Oct 13 09:03:35 CEST 2009
David Forstenlechner a écrit :
> Honestly,
> I would not even think about using the Qt containers unless I must.
>
> Every C++ programmer should be familiar with STL containers,
> there are lots of great books and documentation on how to use them,
> and the STL implementations are reasonably stable at this point.
>
> When you got special needs you may have to write your own data
> structures anyways,
> I see the Qt data structures mainly as a support for the Qt GUI framework,
> not as general purpose replacements for STL/boost or custom written
> special-purpose ones.
I totally agree. Besides I used STL containers most of the time.
My point was nothing more than saying that the answer given by Thiago, which
was more or less "2 billion elements means 16GB in QList" and
suggesting such needs of memory would never happen, was not a good answer.
Because *yes*, such needs of memory can happen, and at least in my field,
they will happen more and more often.
Regards,
--
/- Yves Bailly - Software developper -\
\- Sescoi R&D - http://www.sescoi.fr -/
"The possible is done. The impossible is being done. For miracles,
thanks to allow a little delay."
More information about the Qt-interest-old
mailing list