Skip to content

Instantly share code, notes, and snippets.

@rowlo
Created January 2, 2014 11:52
Show Gist options
  • Save rowlo/8218163 to your computer and use it in GitHub Desktop.
Save rowlo/8218163 to your computer and use it in GitHub Desktop.
Reverse QList one-line with max initialization
for(int k = 0, max = (list.size()/2); k < max; k++) list.swap(k,list.size()-(1+k));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment