Closed Vafo closed 11 months ago
One of solutions of applying ADL on calling unqualified swap link: https://stackoverflow.com/questions/5695548/public-friend-swap-member-function
(Is it really fine to have code like swap(*this, other)
Is there other way around?)
Add
Idea of copy-and-swap
ref: https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Copy-and-swap
Checked delete ref:https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Checked_delete