Created
September 7, 2017 12:08
-
-
Save suy/2ef689ec42d71e3633d81f673ade0382 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manuelschneid3r> does QString("text") allocate exactly the necessary memory or do i have to squeeze? | |
<suy> qout: { QString t("text"); qDebug() << t.capacity(); } | |
<qout> 4 | |
<suy> qout: { QString t("a much, much, much longer text"); qDebug() << t.capacity() << t.size(); } | |
<qout> 30 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment