Modern C++ memory allocation

CMP
8 min readAug 1, 2023

Memory allocation is an important concept for systems programmers to understand, especially when working in environments where resources are limited. This article will go over the differences between the different types of memory allocation and the best practices in modern C++.

Static vs. Dynamic vs. Automatic Memory Allocation

When learning about memory allocation, you may have heard of terms like “the stack” and “the heap”, as well as “static memory” and “dynamic memory”, but what do these terms actually mean?

--

--

CMP

Software engineer specializing in operating systems, navigating the intracicies of the C++ language and systems programming.