lld: Remove explicit copy ops from AssociatedIterator, relying on implicit operators

This commit is contained in:
David Blaikie 2019-12-27 17:27:20 -08:00
parent c51b45e32e
commit 22f34c7f34
1 changed files with 0 additions and 5 deletions

View File

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