Chapter 30. The Big Three

    FAQ 30.01 What is the purpose of this chapter?

    FAQ 30.02 What are the Big Three?

    FAQ 30.03 What happens when an object is destroyed that doesn't have an explicit destructor?

    FAQ 30.04 What happens if an object is copied but doesn't have an explicit copy constructor?

    FAQ 30.05 What happens when an object that doesn't have an explicit assignment operator is assigned?

    FAQ 30.06 What is the Law of the Big Three?

    FAQ 30.07 Which of the Big Three usually shows up first?

    FAQ 30.08 What is remote ownership?

    FAQ 30.09 How is remote ownership special?

    FAQ 30.10 What if a class owns a referent and doesn't have all of the Big Three?

    FAQ 30.11 Are there any C++ classes that help manage remote ownership?

    FAQ 30.12 Does auto_ptr enforce the Law of the Big Three and solve the problems associated with remote ownership?

    FAQ 30.13 Are there cases where one or two of the Big Three may be needed but not all three?

    FAQ 30.14 Are there any other circumstances that might explicitly warrant the Big Three?

    FAQ 30.15 Why does copying an object using memcpy() cause a program crash?

    FAQ 30.16 Why do programs with variable-length argument lists crash?

    FAQ 30.17 Why do programs that use realloc() to reallocate an array of objects crash?



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