[llvm] r303518 - SmallPtrSetImpl/SmallPtrSet: Add a public value_type and key_type
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Sun May 21 16:41:52 PDT 2017
Author: dannyb
Date: Sun May 21 18:41:51 2017
New Revision: 303518
URL: http://llvm.org/viewvc/llvm-project?rev=303518&view=rev
Log:
SmallPtrSetImpl/SmallPtrSet: Add a public value_type and key_type
Modified:
llvm/trunk/include/llvm/ADT/SmallPtrSet.h
Modified: llvm/trunk/include/llvm/ADT/SmallPtrSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SmallPtrSet.h?rev=303518&r1=303517&r2=303518&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallPtrSet.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallPtrSet.h Sun May 21 18:41:51 2017
@@ -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;
More information about the llvm-commits
mailing list