Add difference_type to ImmutableMap/Set iterators so they have a complete set of typedefs.
llvm-svn: 188579
This commit is contained in:
parent
63234c1bbd
commit
04a452b712
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue