From: Matt Arsenault Date: Wed, 8 Jan 2014 21:38:04 +0000 (+0000) Subject: Add missing definitions of key_type and value_type to DenseSet. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=54c69e13774808d39945ff8efb12313f9677bc10;p=oota-llvm.git 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198793 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/DenseSet.h b/include/llvm/ADT/DenseSet.h index d699ad51ada..6abcf6623eb 100644 --- a/include/llvm/ADT/DenseSet.h +++ b/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) {}