Add iterator_traits to ImmutableMap and ImmutableSet.
[oota-llvm.git] / include / llvm / ADT / ImmutableMap.h
index a4232f0da9c09e719248b6e4dec6c49ae21e0ba2..a84ad25beeff425d188869f71deee57a48285da1 100644 (file)
@@ -224,6 +224,11 @@ public:
     iterator  operator--(int) { iterator tmp(*this); --itr; return tmp; }
     bool operator==(const iterator& RHS) const { return RHS.itr == itr; }
     bool operator!=(const iterator& RHS) const { return RHS.itr != itr; }
+    
+    typedef ImmutableMap<KeyT,ValT,ValInfo>::value_type value_type;
+    typedef value_type *pointer;
+    typedef value_type &reference;
+    typedef std::bidirectional_iterator_tag iterator_category;
   };
 
   iterator begin() const { return iterator(Root); }