Memory Management
How does C++ handle memory allocation and de-allocation when executing a program, in particular :
- Stack Memory and Scope Memory Block, out-of-scope variables
- Object Destructor, usage of Copy Constructor
- Mechanism behind the
return statement and copy elision
- Heap Memory and dynamic memory allocation with
new
- The 4 main pitfalls of memory management, use of
unique_ptr
- Pre-compilation directives, include guards and generic macros
Don't hesitate to checkout the Link to Lecture Slides ...