Chapter 16. Using Static

    FAQ 16.01 What is the purpose of this chapter?

    FAQ 16.02 What are static class members?

    FAQ 16.03 What is an analogy for static data members?

    FAQ 16.04 Can inline functions safely access static data members?

    FAQ 16.05 What is an analogy for static member functions?

    FAQ 16.06 How is a static data member similar to a global variable?

    FAQ 16.07 How is a static member function similar to a friend function?

    FAQ 16.08 What is the named constructor idiom?

    FAQ 16.09 How should static member functions be called?

    FAQ 16.10 Why might a class with static data members get linker errors?

    FAQ 16.11 How is a const static data member initialized?

    FAQ 16.12 What is the right strategy for implementing a function that needs to maintain state between calls?

    FAQ 16.13 How can the function call operator help with functionoids?

    FAQ 16.14 Is it safe to be ignorant of the static initialization order problem?

    FAQ 16.15 What is a simple and robust solution to the static initialization order problem?

    FAQ 16.16 What if the static object's destructor has important side effects that must eventually occur?

    FAQ 16.17 What if the static object's destructor has important side effects that must eventually occur and the static object must be accessed by another static object's destructor?

    FAQ 16.18 What are some criteria for choosing between all these various techniques?



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