diff --git a/elfio/elfio.hpp b/elfio/elfio.hpp index decc5e6..1af5b38 100644 --- a/elfio/elfio.hpp +++ b/elfio/elfio.hpp @@ -686,6 +686,15 @@ class elfio return new_section; } + + std::vector::iterator begin() { + return parent->sections_.begin(); + } + + std::vector::iterator end() { + return parent->sections_.end(); + } + //------------------------------------------------------------------------------ private: @@ -722,6 +731,14 @@ class elfio return parent->create_segment(); } + std::vector::iterator begin() { + return parent->segments_.begin(); + } + + std::vector::iterator end() { + return parent->segments_.end(); + } + //------------------------------------------------------------------------------ private: elfio* parent;