O'Reilly logo
  • Ben Medina thinks this is interesting:

By default, swapping is accomplished via the standard swap algorithm. Its typical implementation is exactly what you'd expect


Cover of Effective C++: 55 Specific Ways to Improve Your Programs and Designs, Third Edition


C++11 adds a variation that is used when the types are move-enabled.