Chapter 24. Assignment Operators

    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?



C++ FAQs
C Programming FAQs: Frequently Asked Questions
ISBN: 0201845199
EAN: 2147483647
Year: 2005
Pages: 566
Authors: Steve Summit

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net