Add difference_type to ImmutableMap/Set iterators so they have a complete set of...
[oota-llvm.git] / include / llvm / ADT / ImmutableSet.h
index fbdf066e61ab60a64305afe215ad70d38233020d..2a0579e29eee148c6dbdc8d800505f8535c19617 100644 (file)
@@ -1060,6 +1060,7 @@ public:
     friend class ImmutableSet<ValT,ValInfo>;
 
   public:
+    typedef ptrdiff_t difference_type;
     typedef typename ImmutableSet<ValT,ValInfo>::value_type value_type;
     typedef typename ImmutableSet<ValT,ValInfo>::value_type_ref reference;
     typedef typename iterator::value_type *pointer;