forked from OSchip/llvm-project
Add missing definitions of key_type and value_type to DenseSet.
This matches std::set and allows using DenseSet with the functions in SetOperations.h llvm-svn: 198793
This commit is contained in:
parent
5d16475b31
commit
d13105d793
|
@ -27,6 +27,9 @@ class DenseSet {
|
||||||
typedef DenseMap<ValueT, char, ValueInfoT> MapTy;
|
typedef DenseMap<ValueT, char, ValueInfoT> MapTy;
|
||||||
MapTy TheMap;
|
MapTy TheMap;
|
||||||
public:
|
public:
|
||||||
|
typedef ValueT key_type;
|
||||||
|
typedef ValueT value_type;
|
||||||
|
|
||||||
DenseSet(const DenseSet &Other) : TheMap(Other.TheMap) {}
|
DenseSet(const DenseSet &Other) : TheMap(Other.TheMap) {}
|
||||||
explicit DenseSet(unsigned NumInitBuckets = 0) : TheMap(NumInitBuckets) {}
|
explicit DenseSet(unsigned NumInitBuckets = 0) : TheMap(NumInitBuckets) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue