C++ Memory Model

Subpage of C++ Deep Dive

An up close and personal look at C++.

Memory Model

Variables can either be created or destroyed. They can also exist on different locations (i.e the stack, heap or static storage).

Go into the roles played by each of these memory segments.

However, in C++ it is important to resolve this question in any code that we write:

Who is responsible for cleaning up this piece of memory?

Data Structures

We have std::array and std::string instead of just the basic structures provided in the C language. These are safer abstractions which reduces the need for manual pointer juggling.

/ Continue

Follow the technical trail.

Use the dense notes as the source material, then move through the guided route, writing, or project proof when you want a cleaner entry point.