Add difference_type to ImmutableMap/Set iterators so they have a complete set of...
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 16 Aug 2013 21:55:56 +0000 (21:55 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 16 Aug 2013 21:55:56 +0000 (21:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188579 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/ImmutableMap.h
include/llvm/ADT/ImmutableSet.h

index a667479a4d176e750f234453b8e383b5a1dbb8c4..8f8fb98770405c5efe3e800732f378dd6eaa4740 100644 (file)
@@ -211,6 +211,7 @@ public:
     friend class ImmutableMap;
 
   public:
+    typedef ptrdiff_t difference_type;
     typedef typename ImmutableMap<KeyT,ValT,ValInfo>::value_type value_type;
     typedef typename ImmutableMap<KeyT,ValT,ValInfo>::value_type_ref reference;
     typedef typename iterator::value_type *pointer;
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;