This is an archive of the discontinued LLVM Phabricator instance.

Add support for DenseMap/DenseSet count and find using const pointers
ClosedPublic

Authored by dberlin on Mar 7 2017, 12:04 PM.

Details

Summary

Similar to SmallPtrSet, this makes find and count work with both const
referneces and const pointers.

Diff Detail

Repository
rL LLVM

Event Timeline

dberlin created this revision.Mar 7 2017, 12:04 PM
dblaikie edited edge metadata.Mar 7 2017, 12:29 PM

Probably nice to generalize this more fully to support heterogenous lookup (added to standard C++ containers in C++14), but that's probably sufficiently more work not to hold this common case up behind it.

This revision was automatically updated to reflect the committed changes.