aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/elf.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/elf.hh')
-rw-r--r--paludis/util/elf.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/paludis/util/elf.hh b/paludis/util/elf.hh
index e98c01979..ee0026220 100644
--- a/paludis/util/elf.hh
+++ b/paludis/util/elf.hh
@@ -23,6 +23,7 @@
#include <paludis/util/elf_sections.hh>
#include <paludis/util/exception.hh>
+#include <paludis/util/iterator_range.hh>
#include <paludis/util/pimp.hh>
#include <paludis/util/wrapped_forward_iterator-fwd.hh>
#include <iosfwd>
@@ -115,6 +116,10 @@ namespace paludis
typedef paludis::WrappedForwardIterator<SectionIteratorTag, Section<ElfType_> > SectionIterator;
SectionIterator section_begin() const;
SectionIterator section_end() const;
+ IteratorRange<SectionIterator> sections() const noexcept
+ {
+ return {section_begin(), section_end()};
+ }
SectionIterator get_section_by_index(unsigned int index) const;