coding
Item-11 Handle self assignment in operator=
· β˜• 4 min read

Solve self assignment situation in operator= by comparing addresses of source and target objects, careful statement ordering, and copy-and-swap.