See: https://en.cppreference.com/w/cpp/header/flat_map
Linear search generally does outperform for small collections though (it’s better for caches and the branch predictor).
See: https://en.cppreference.com/w/cpp/header/flat_map