nikic wrote: Though I would like to hear where you plan to use this. Usually enums imply that there is a reasonably small, continuously numbered and fixed set of keys, in which case using a vector instead of map is preferable. https://github.com/llvm/llvm-project/pull/95972