HFT CORE SYSTEMS

Object lifetime, storage, alignment, and aliasing

Lesson 45 of 96Phase 05: Low-latency C++
Video lesson coming soon

The written objectives and hands-on lab are available now.

cppvalley on YouTube ↗

Learning objectives

What you should understand

  1. Separate storage duration from object lifetime
  2. Construct objects correctly in raw storage
  3. Avoid undefined behavior from alignment and aliasing

Lab

Hands-on exercise

Repair a binary-buffer example with lifetime and aliasing bugs.

Deliverable

Evidence of completion

A sanitizer-backed test and explanation of each corrected rule.

Prerequisite
EP 44

Phase 05

Low-latency C++

Full curriculum