aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/elf_dynamic_section.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/elf_dynamic_section.hh')
-rw-r--r--paludis/util/elf_dynamic_section.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/paludis/util/elf_dynamic_section.hh b/paludis/util/elf_dynamic_section.hh
index af01f6c13..aee94b5d0 100644
--- a/paludis/util/elf_dynamic_section.hh
+++ b/paludis/util/elf_dynamic_section.hh
@@ -23,6 +23,7 @@
#include <paludis/util/elf_sections.hh>
#include <paludis/util/clone.hh>
+#include <paludis/util/iterator_range.hh>
#include <paludis/util/singleton.hh>
#include <paludis/util/pimp.hh>
#include <paludis/util/wrapped_forward_iterator-fwd.hh>
@@ -213,6 +214,10 @@ namespace paludis
typedef WrappedForwardIterator<EntryIteratorTag, DynamicEntry<ElfType_> > EntryIterator;
EntryIterator entry_begin() const;
EntryIterator entry_end() const;
+ IteratorRange<EntryIterator> entries() const noexcept
+ {
+ return {entry_begin(), entry_end()};
+ }
};
}