jeudi 2 juillet 2015

Speed comparison between i = i + 1 and ++i

Is i = i + 1 faster than ++i for C++11? I hear that ++i is faster than i++ for classes, but not for simple types. Is there a similar comparison between i = i + 1 and these other two?
Thanks!

Aucun commentaire:

Enregistrer un commentaire