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 | d861b90fe264ec42b941162ca920fadd0a80a1c1 (patch) | |
tree | e866f175f7e142cef166bab8a755b90a9486e43b /include/llvm/ADT | |
parent | 692062f18023979c0f8d5a155c14cf1f1616a2b0 (diff) | |
download | llvm-d861b90fe264ec42b941162ca920fadd0a80a1c1.tar.gz llvm-d861b90fe264ec42b941162ca920fadd0a80a1c1.tar.bz2 llvm-d861b90fe264ec42b941162ca920fadd0a80a1c1.tar.xz |
Add difference_type to ImmutableMap/Set iterators so they have a complete set of typedefs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/ImmutableMap.h | 1 | ||||
-rw-r--r-- | include/llvm/ADT/ImmutableSet.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/ADT/ImmutableMap.h b/include/llvm/ADT/ImmutableMap.h index a667479a4d..8f8fb98770 100644 --- a/include/llvm/ADT/ImmutableMap.h +++ b/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/include/llvm/ADT/ImmutableSet.h b/include/llvm/ADT/ImmutableSet.h index fbdf066e61..2a0579e29e 100644 --- a/include/llvm/ADT/ImmutableSet.h +++ b/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; |