First, if the default implementation of
swap offers acceptable efficiency for your class or class template, you don't need to do anything.
- 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
This is now much more common with the ability to do move construct/assign.
Share this highlighthttp://www.safaribooksonline.com/a/effective-c-55/2445957/