Learn about the copy-and-swap idiom in C++ for exception-safe assignment operations. Discover when to use it, problems it solves, and C++11 changes. Complete guide with examples.