mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
Adding operator== for document_iterator.
llvm-svn: 154927
This commit is contained in:
parent
cfdd3323eb
commit
70cac8dbd0
@ -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