[PATCH] D24689: [ADT] Add missing const_iterator DenseSet::find() const
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 16 16:07:09 PDT 2016
vitalybuka created this revision.
vitalybuka added a reviewer: eugenis.
vitalybuka added a subscriber: llvm-commits.
Probably overlooked.
https://reviews.llvm.org/D24689
Files:
include/llvm/ADT/DenseSet.h
Index: include/llvm/ADT/DenseSet.h
===================================================================
--- include/llvm/ADT/DenseSet.h
+++ include/llvm/ADT/DenseSet.h
@@ -135,6 +135,7 @@
const_iterator end() const { return ConstIterator(TheMap.end()); }
iterator find(const ValueT &V) { return Iterator(TheMap.find(V)); }
+ const_iterator find(const ValueT &V) const { return ConstIterator(TheMap.find(V)); }
/// Alternative version of find() which allows a different, and possibly less
/// expensive, key type.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24689.71712.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160916/507002fb/attachment.bin>
More information about the llvm-commits
mailing list