22.05.2019, 19:28, "Иван Комиссаров" <abba...@gmail.com>: >> 4. Use QVector to implement QList<Foo>, if sizeof(Foo) <= sizeof(quint64) >> and Foo is movable > > What about fast prepend in that case? People tend to use QList as a deque > because of the fast prepend/take first
FWIW, std::deque is implemented as a peculiar data strucutre which is not really contiguous, and it may perform worse than QList in certain cases -- Regards, Konstantin _______________________________________________ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development