File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -2251,9 +2251,13 @@ class ClaimedParamsRef {
2251
2251
checkParams ();
2252
2252
}
2253
2253
2254
- struct iterator : public std ::iterator<std::random_access_iterator_tag,
2255
- SILParameterInfo>
2256
- {
2254
+ struct iterator {
2255
+ using iterator_category = std::random_access_iterator_tag;
2256
+ using value_type = SILParameterInfo;
2257
+ using difference_type = std::ptrdiff_t ;
2258
+ using pointer = value_type*;
2259
+ using reference = value_type&;
2260
+
2257
2261
const SILParameterInfo *Base;
2258
2262
unsigned I, SkipParamIndex;
2259
2263
Original file line number Diff line number Diff line change @@ -1028,9 +1028,13 @@ namespace {
1028
1028
SmallVector<Edge, 8 > Children;
1029
1029
};
1030
1030
1031
- struct child_iterator
1032
- : public std::iterator<std::random_access_iterator_tag, Node *,
1033
- ptrdiff_t > {
1031
+ struct child_iterator {
1032
+ using iterator_category = std::random_access_iterator_tag;
1033
+ using value_type = Node*;
1034
+ using difference_type = std::ptrdiff_t ;
1035
+ using pointer = value_type*;
1036
+ using reference = value_type&;
1037
+
1034
1038
SmallVectorImpl<Edge>::iterator baseIter;
1035
1039
1036
1040
child_iterator (SmallVectorImpl<Edge>::iterator baseIter) :
You can’t perform that action at this time.
0 commit comments