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.