By default, swapping is accomplished via the standard
swap algorithm. Its typical implementation is exactly what you'd expect
- 4. Designs and Declarations
- from Effective C++: 55 Specific Ways to Improve Your Programs and Designs, Third Edition
- Publisher: Addison-Wesley Professional
- Released: May 2005
C++11 adds a variation that is used when the types are move-enabled.
Share this highlighthttp://www.safaribooksonline.com/a/effective-c-55/2445699/