Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

Non-member functions

By: bkuhns on Oct 15th, 2012  |  syntax: None  |  size: 0.15 KB  |  views: 58  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. void DoSwap(std::vector v1, std::vector v2)
  2. {
  3.     std::swap(v1, v2);
  4. }
  5.  
  6. void DoMemberSwap(std::vector v1, std::vector v2)
  7. {
  8.     v1.swap(v2);
  9. }