In this chapter, we will cover the following topics:
- Managing local pointers to classes that do not leave scope
- Reference counting of pointers to classes used across functions
- Managing local pointers to arrays that do not leave scope
- Reference counting of pointers to arrays used across functions
- Storing any functional objects in a variable
- Passing function pointer in a variable
- Passing C++11 lambda functions in a variable
- Containers of pointers
- Do it at scope exit!
- Initializing the base class by the member of the derived class