Skip to content

Instantly share code, notes, and snippets.

@thiagomg thiagomg/loop1.cpp
Last active Oct 13, 2015

What would you like to do?
Range loops - Writing safe
//Bad code. Don't try it at home.
int count = 1;
while (count < msgs.size() - 1)
const Message &item = msgs[count];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.