Skip to content

flat_map: ordered-container design, learned from Chromium

This directory takes apart Chromium's flat_map / flat_tree and works through the industrial-strength design of implementing an associative container on a sorted vector: why an array beats a tree at small N, the read-heavy write-light home turf, the zero-cost sorted_unique construction, transparent comparators, and EBO. It sits alongside OnceCallback and WeakPtr, rounding out the container-and-performance piece of vol9/chrome.

Full tutorial (full/)

Prerequisites (6 chapters):

Hands-on (6 chapters):

Hands-on design guide (hands_on/)

For readers comfortable with templates and performance:

v0.10.0-6-gbcee94e · bcee94e · 2026-08-20