SmallPtrSetImpl/SmallPtrSet: Add a public value_type and key_type
authorDaniel Berlin <dberlin@dberlin.org>
Sun, 21 May 2017 23:41:51 +0000 (23:41 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Sun, 21 May 2017 23:41:51 +0000 (23:41 +0000)
llvm-svn: 303518

llvm/include/llvm/ADT/SmallPtrSet.h

index b49d216..a0b380b 100644 (file)
@@ -365,6 +365,8 @@ protected:
 public:
   using iterator = SmallPtrSetIterator<PtrType>;
   using const_iterator = SmallPtrSetIterator<PtrType>;
+  using key_type = ConstPtrType;
+  using value_type = PtrType;
 
   SmallPtrSetImpl(const SmallPtrSetImpl &) = delete;