SHARE
TWEET

Non-member functions

bkuhns Oct 15th, 2012 79 Never
  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. }
RAW Paste Data
Top