Use a standard (or LLVM) map with typeinfo (would need a specialization
to expose equality and hasher) for the allocators and the creation
functions could be a function template.
Author: Carlos Alberto Enciso (CarlosAlbertoEnciso)
Extracted from [llvm/tools/llvm-debuginfo-analyzer/README.txt](https://github.com/llvm/llvm-project/blob/main/llvm/tools/llvm-debuginfo-analyzer/README.txt)
https://reviews.llvm.org/D137933#inline-1389904
Use a standard (or LLVM) map with `typeinfo` (would need a specialization to expose equality and hasher) for the allocators and the creation functions could be a function template.
Extracted from llvm/tools/llvm-debuginfo-analyzer/README.txt https://reviews.llvm.org/D137933#inline-1389904
Use a standard (or LLVM) map with
typeinfo
(would need a specialization to expose equality and hasher) for the allocators and the creation functions could be a function template.