| ||||
| Comment on Reader Q&A: auto and for loop index variables by adam915
Hi all, I’m not sure about insert object.size() (or any other function) in for statement is good solution, i think the auto object_size = object.size(); decltype(object_size) i = 0; for (i = 0; i < object_size; i++) { … } it’s better than for (decltype(object.size()) i = 0; i < object.size(); i++) { … } because we don’t call object.size() function in every iteration (in second example, it’s called twice) Read More » | ||||
| | ||||
| ||||
Monday, November 9, 2015
FeedaMail: Comments for Sutterâs Mill
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment