diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-08-16 21:55:56 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-08-16 21:55:56 +0000 |
commit | 04a452b712929122aadb121d9f94e330202a63cf (patch) | |
tree | 59de2751959a1cb50a51bfaded1f8c637fbef449 /llvm | |
parent | 63234c1bbdc1d30f598d69f853327486d3a5baec (diff) | |
download | bcm5719-llvm-04a452b712929122aadb121d9f94e330202a63cf.tar.gz bcm5719-llvm-04a452b712929122aadb121d9f94e330202a63cf.zip |
Add difference_type to ImmutableMap/Set iterators so they have a complete set of typedefs.
llvm-svn: 188579
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/ADT/ImmutableMap.h | 1 | ||||
-rw-r--r-- | llvm/include/llvm/ADT/ImmutableSet.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/ImmutableMap.h b/llvm/include/llvm/ADT/ImmutableMap.h index a667479a4d1..8f8fb987704 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<KeyT,ValT,ValInfo>::value_type value_type; typedef typename ImmutableMap<KeyT,ValT,ValInfo>::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 fbdf066e61a..2a0579e29ee 100644 --- a/llvm/include/llvm/ADT/ImmutableSet.h +++ b/llvm/include/llvm/ADT/ImmutableSet.h @@ -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; |