#include #include #include "qrawvector.h" const int N = 1000000; double s = 0; QVector qvector_fill_and_return_helper() { QVector v(N); for (int i = 0; i != N; ++i) v[i] = i; return v; } QVector qrawvector_fill_and_return_helper() { QRawVector v(N); for (int i = 0; i != N; ++i) v[i] = i; return v.mutateToVector(); } QVector mixedvector_fill_and_return_helper() { std::vector v(N); for (int i = 0; i != N; ++i) v[i] = i; return QVector::fromStdVector(v); } std::vector stdvector_fill_and_return_helper() { std::vector v(N); for (int i = 0; i != N; ++i) v[i] = i; return v; }