mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-28 22:20:43 +00:00
Adding operator== for document_iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
93751c8c99
commit
388774c02a
@ -516,8 +516,11 @@ public:
|
||||
document_iterator() : Doc(NullDoc) {}
|
||||
document_iterator(OwningPtr<Document> &D) : Doc(D) {}
|
||||
|
||||
bool operator ==(const document_iterator &Other) {
|
||||
return Doc == Other.Doc;
|
||||
}
|
||||
bool operator !=(const document_iterator &Other) {
|
||||
return Doc != Other.Doc;
|
||||
return !(*this == Other);
|
||||
}
|
||||
|
||||
document_iterator operator ++() {
|
||||
|
Loading…
Reference in New Issue
Block a user