[PATCH] Add find_as to DenseSet.

Lang Hames lhames at gmail.com
Sun Oct 19 11:51:35 PDT 2014


Hi All,

This patch adds the find_as operation to DenseSet.

As with the corresponding method in DenseMap, this is useful if you have a
DenseSet that contains expensive-to-contruct values, but there exists some
cheap-to-construct type that can be used as a key for lookup.

Unit-test included.

Cheers,
Lang.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141019/48366aae/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_find_as_to_denseset.patch
Type: application/octet-stream
Size: 2394 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141019/48366aae/attachment.obj>


More information about the llvm-commits mailing list