llvm.org GIT mirror llvm / 388774c
Adding operator== for document_iterator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154927 91177308-0d34-0410-b5e6-96231b3b80d8 Manuel Klimek 8 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
515515 document_iterator() : Doc(NullDoc) {}
516516 document_iterator(OwningPtr &D) : Doc(D) {}
517517
518 bool operator ==(const document_iterator &Other) {
519 return Doc == Other.Doc;
520 }
518521 bool operator !=(const document_iterator &Other) {
519 return Doc != Other.Doc;
522 return !(*this == Other);
520523 }
521524
522525 document_iterator operator ++() {