From d13105d793a5e7017fd0b1683e8bc5bee89448e2 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 8 Jan 2014 21:38:04 +0000 Subject: [PATCH] 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 --- llvm/include/llvm/ADT/DenseSet.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/ADT/DenseSet.h b/llvm/include/llvm/ADT/DenseSet.h index d699ad5..6abcf66 100644 --- a/llvm/include/llvm/ADT/DenseSet.h +++ b/llvm/include/llvm/ADT/DenseSet.h @@ -27,6 +27,9 @@ class DenseSet { typedef DenseMap 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) {} -- 2.7.4