Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想QList<double>用const double值填写一个。
QList<double>
const double
这些const double是由我不会更改的方法返回的。
如何简单地做到这一点?
由于正在复制值,因此函数是否返回它们const并不重要。
const