我将为我的 编写一个自定义运算符,我struct
想知道两者之间的性能是否有任何差异:
QDataStream &operator<<(QDataStream &out, const Event &event)
{
out << event.a;
out << event.b;
out << event.c;
}
QDataStream &operator<<(QDataStream &out, const Event &event)
{
out << event.a
<< event.b
<< event.c;
}