Skip to content

flat_map: ordered-container design lessons from Chromium ​

This directory takes apart Chromium's flat_map / flat_tree and works through the industrial-grade design of implementing an associative container on a sorted vector: why an array beats a tree at small data sizes, the read-heavy write-light workloads that are its home turf, the zero-cost sorted_unique construction, transparent comparators, and EBO. It is the sister series to OnceCallback and WeakPtr, rounding out the container-and-performance dimension of vol9/chrome.

Complete tutorial (full/) ​

Prerequisites (6 articles):

Hands-on practice (6 articles):

Advanced design guide (hands_on/) ​

Aimed at readers with template and performance experience:

pdf-latest-4-g85128cc · 85128cc · 2026-10-05