FAQ 24.01 What should assignment operators return? FAQ 24.02 What is wrong with an object being assigned to itself? FAQ 24.03 What should be done about self-assignment? FAQ 24.04 Should an assignment operator throw an exception after partially assigning an object? FAQ 24.05 How should the assignment operator be declared in an ABC? FAQ 24.06 When should a user-defined assignment operator mimic the assignment operator that the compiler would generate automatically? FAQ 24.07 What should be returned by private: and protected: assignment operators? FAQ 24.08 Are there techniques that increase the likelihood that the compiler-synthesized assignment operator will be right? FAQ 24.09 How should the assignment operator in a derived class behave? FAQ 24.10 Can an ABC's assignment operator be virtual? FAQ 24.11 What should a derived class do if a base class's assignment operator is virtual? FAQ 24.12 Should the assignment operator be implemented by using placement new and the copy constructor? |