Advertisement
bkuhns

Non-member functions

Oct 15th, 2012
589
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement