I see that Qt has their own templates of smart pointers. My question is, how to choose between two? Are there cases when Qt smart pointers perform better than STL or vice versa?
Asked
Active
Viewed 137 times
0
-
I don't know the answer, but Qt licensing would probably be a good thing to take into consideration. – Christopher Schneider Sep 16 '16 at 22:01
-
You'll find the performance difference (if any) by measuring. Please, feel free to go ahead. – eerorika Sep 16 '16 at 23:28
-
There is no QTL but Qt, I fixed the post. And the question is so not new. Just search. – Alexander V Sep 17 '16 at 01:23
-
I doubt there are significant performance differences; most likely the Qt implementations are there primarily because Qt predates a lot of STL functionality. Use whichever version you prefer (keeping in mind that using Qt implementation means your code will only compile as part of a Qt program, which might limit its usefulness e.g. as a general-purpose library) – Jeremy Friesner Sep 17 '16 at 05:17