lld: Remove explicit copy ops from AssociatedIterator, relying on implicit operators
This commit is contained in:
parent
c51b45e32e
commit
22f34c7f34
|
|
@ -267,12 +267,7 @@ public:
|
|||
AssociatedIterator, std::forward_iterator_tag, SectionChunk> {
|
||||
public:
|
||||
AssociatedIterator() = default;
|
||||
AssociatedIterator(const AssociatedIterator&) = default;
|
||||
AssociatedIterator(SectionChunk *head) : cur(head) {}
|
||||
AssociatedIterator &operator=(const AssociatedIterator &r) {
|
||||
cur = r.cur;
|
||||
return *this;
|
||||
}
|
||||
bool operator==(const AssociatedIterator &r) const { return cur == r.cur; }
|
||||
const SectionChunk &operator*() const { return *cur; }
|
||||
SectionChunk &operator*() { return *cur; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue