projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d16475
)
Add missing definitions of key_type and value_type to DenseSet.
author
Matt Arsenault
<Matthew.Arsenault@amd.com>
Wed, 8 Jan 2014 21:38:04 +0000
(21:38 +0000)
committer
Matt Arsenault
<Matthew.Arsenault@amd.com>
Wed, 8 Jan 2014 21:38:04 +0000
(21:38 +0000)
This matches std::set and allows using DenseSet with the functions
in SetOperations.h
llvm-svn: 198793
llvm/include/llvm/ADT/DenseSet.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/DenseSet.h
b/llvm/include/llvm/ADT/DenseSet.h
index
d699ad5
..
6abcf66
100644
(file)
--- a/
llvm/include/llvm/ADT/DenseSet.h
+++ b/
llvm/include/llvm/ADT/DenseSet.h
@@
-27,6
+27,9
@@
class DenseSet {
typedef DenseMap<ValueT, char, ValueInfoT> MapTy;
MapTy TheMap;
public:
+ typedef ValueT key_type;
+ typedef ValueT value_type;
+
DenseSet(const DenseSet &Other) : TheMap(Other.TheMap) {}
explicit DenseSet(unsigned NumInitBuckets = 0) : TheMap(NumInitBuckets) {}