【发布时间】:2011-07-10 14:02:33
【问题描述】:
可能的重复:
Preincrement faster than postincrement in C++ - true? If yes, why is it?
Is there a performance difference between i++ and ++i in C++?
有人告诉我,在使用 STL 及其迭代器时,我应该始终使用 ++iter 而不是 iter++。
我引用:
因为它只能更快,永远不会慢
这是真的吗?
【问题讨论】: