Skip to content

Instantly share code, notes, and snippets.

@thiagomg thiagomg/loop1.cpp
Created Oct 13, 2015

Embed
What would you like to do?
Range loops - Writing safe
//Also bad code. Don't try at home.
for(auto it = msgs.cbegin()+1; it != msgs.cend()-1; it++) {
PublishMessage(*it);
}
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.