<div dir="ltr"><div>Hi all,</div><div><br></div><div>I'm curious, is there a reason why DenseMap doesn't templatize a custom Allocator? I'm</div><div>in the process of switching all my uses of std::unordered_map and a custom-rolled hash</div><div>map implementation to StringMap and DenseMap. StringMap allows the injection of an</div><div>allocator, but not DenseMap.</div><div><br></div><div>Aside from subclassing DenseMapBase and implementing grow/shrink functionality similar</div><div>to DenseMap, is there a simpler solution to injecting custom allocation and deallocation</div><div>into a DenseMap?</div><div><br></div><div>Thanks,</div><div>Prashanth</div></div>