forked from OSchip/llvm-project
One last RandomAccessIterator operator for PreprocessingRecord::iterator
llvm-svn: 135680
This commit is contained in:
parent
cbd50c3201
commit
f676fdc8ea
|
@ -419,6 +419,11 @@ namespace clang {
|
|||
friend difference_type operator-(const iterator &X, const iterator &Y) {
|
||||
return X.Position - Y.Position;
|
||||
}
|
||||
|
||||
friend iterator operator-(iterator X, difference_type D) {
|
||||
X.Position -= D;
|
||||
return X;
|
||||
}
|
||||
};
|
||||
friend class iterator;
|
||||
|
||||
|
|
Loading…
Reference in New Issue