Add difference_type to ImmutableMap/Set iterators so they have a complete set of typedefs.

llvm-svn: 188579
This commit is contained in:
Benjamin Kramer 2013-08-16 21:55:56 +00:00
parent 63234c1bbd
commit 04a452b712
2 changed files with 2 additions and 0 deletions

View 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;

View 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;