Solved Why there is no QList<T>::append(T &&)
-
Just take QStringList as example, if we implement QStringList::append(QString &&str), isn't it more efficient in some cases?
-
Because QList is a container which should no be used anymore (even it's not that explicitly written) since it's neither a list nor a vector. QVector for example has this function.7
/edit: and due to implicit sharing you won't gain much performance for it either.
-
@Christian-Ehrlicher
Oh, I haven't realized that QLIst is deprecated. What about QMap? -
@Mr-Pang said in Why there is no QList<T>::append(T &&):
What about QMap?
Feel free to add a patch for it.