From 04a452b712929122aadb121d9f94e330202a63cf Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 16 Aug 2013 21:55:56 +0000 Subject: [PATCH] Add difference_type to ImmutableMap/Set iterators so they have a complete set of typedefs. llvm-svn: 188579 --- llvm/include/llvm/ADT/ImmutableMap.h | 1 + llvm/include/llvm/ADT/ImmutableSet.h | 1 + 2 files changed, 2 insertions(+) diff --git a/llvm/include/llvm/ADT/ImmutableMap.h b/llvm/include/llvm/ADT/ImmutableMap.h index a667479a4d17..8f8fb9877040 100644 --- a/llvm/include/llvm/ADT/ImmutableMap.h +++ b/llvm/include/llvm/ADT/ImmutableMap.h @@ -211,6 +211,7 @@ public: friend class ImmutableMap; public: + typedef ptrdiff_t difference_type; typedef typename ImmutableMap::value_type value_type; typedef typename ImmutableMap::value_type_ref reference; typedef typename iterator::value_type *pointer; diff --git a/llvm/include/llvm/ADT/ImmutableSet.h b/llvm/include/llvm/ADT/ImmutableSet.h index fbdf066e61ab..2a0579e29eee 100644 --- a/llvm/include/llvm/ADT/ImmutableSet.h +++ b/llvm/include/llvm/ADT/ImmutableSet.h @@ -1060,6 +1060,7 @@ public: friend class ImmutableSet; public: + typedef ptrdiff_t difference_type; typedef typename ImmutableSet::value_type value_type; typedef typename ImmutableSet::value_type_ref reference; typedef typename iterator::value_type *pointer;