llvm-project
a98dcad4 - [ADT] Extract DenseMapStorage from DenseMap (NFC) (#226664)

Commit
31 days ago
[ADT] Extract DenseMapStorage from DenseMap (NFC) (#226664) This patch extracts the bucket and occupancy storage management from DenseMap into a new helper class, densemap::detail::DenseMapStorage, and updates DenseMap to use it via composition. DenseMapBase::Rep is also moved to densemap::detail::StorageRep so that DenseMapStorage::getRep() can return it directly. This is part of the effort to replace CRTP in DenseMapBase with composition (see #168255). I'm planning to post a similar patch for SmallDenseMap before actually removing CRTP.
Parents
Loading