#include <QCoreApplication>
#include <vector>
#include <iostream>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
std::vector<int> vec;
std::cout << vec.size() << std::endl;
std::cout << vec.capacity() << std::endl;
return a.exec();
}
运行结果:
0
0