Guys i am wondering if QVector deleted his items when i call QVector::clear() ?
example
for (int i = 0 ; i < 1000000 ; i++)
{
dVector.append((double) i); // this loop will take atleast 1M x 4 of memory
}
//now if i will say
dVector.clear() // what will happen to the item created by the loop.
QVector <double> dVector;
for (int i = 0 ; i < 1000000 ; i++)
{
dVector.append((double) i); // this loop will take atleast 1M x 4 of memory
}
//now if i will say
dVector.clear() // what will happen to the item created by the loop.
To copy to clipboard, switch view to plain text mode
baray98
Bookmarks