这是QT QList 的代码段:
template
inline void QList::clear()
{
*this = QList();
}
*this = QList();
这是什么意思。
这是QT QList 的代码段:
template
inline void QList::clear()
{
*this = QList();
}
*this = QList();
这是什么意思。
生成一个默认的List赋值给当前对象,从而达到清空当前对象的内容