One last RandomAccessIterator operator for PreprocessingRecord::iterator

llvm-svn: 135680
This commit is contained in:
Douglas Gregor 2011-07-21 16:37:44 +00:00
parent cbd50c3201
commit f676fdc8ea
1 changed files with 5 additions and 0 deletions

View File

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