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:
Matt Arsenault 2014-01-08 21:38:04 +00:00
parent 5d16475b31
commit d13105d793
1 changed files with 3 additions and 0 deletions

View File

@ -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) {}