The Runtime Theory
C++Planned

C++ Intermediate

Video not available yet
18:15

C++ Intermediate

Lesson Promise

By the end of this lesson, you will know how to avoid memory leaks using RAII and smart pointers, and how to use STL containers and algorithms effectively — choosing the right container and algorithm for each job.

Narration Draft

"The single most important rule in C++ is: never call new or delete manually. Instead, use RAII — Resource Acquisition Is Initialization — where an object's destructor automatically cleans up resources when it goes out of scope. Smart pointers like unique_ptr and shared_ptr implement this pattern for heap-allocated memory."

Visual Sequence

  1. Scene 1 — Memory layout with smart pointers (Diagram: cpp-memory-layout)
  2. Scene 2 — unique_ptr vs shared_ptr ownership model
  3. Scene 3 — Container complexity table (vector vs map vs unordered_map)
  4. Scene 4 — Algorithm walkthrough: sort → binary_search → accumulate

Companion Material

Related articles

More in C++

New lessons by email

Get new articles and notes on the systems behind everyday software.

One technical dispatch per week. No noise.

Not started

Sign in to save your learning progress.

Sign in to save