Add a value_type typedef to SmallVector, to make it more compatible with STL adapters.
authorOwen Anderson <resistor@mac.com>
Fri, 15 Aug 2008 18:45:51 +0000 (18:45 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 15 Aug 2008 18:45:51 +0000 (18:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54819 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallVector.h

index d98d40a3f391c81a9ea4613debd3acb8cc133f87..05952a4490e4a095fd9919cef4e148b666656b0e 100644 (file)
@@ -90,6 +90,7 @@ public:
   }
   
   typedef size_t size_type;
+  typedef T value_type;
   typedef T* iterator;
   typedef const T* const_iterator;