Performance difference between ++iterator and iterator++?

后端 未结 7 1068
悲哀的现实
悲哀的现实 2020-12-08 04:32

My workmate claims that for object types preincrement is more efficient than post increment

e.g.

std::vector vec;

... insert a wh         


        
7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-08 05:12

    have a look at this http://discuss.fogcreek.com/joelonsoftware/default.asp?cmd=show&ixPost=171881

提交回复
热议问题