diff options
Diffstat (limited to 'boost/heap/detail/tree_iterator.hpp')
-rw-r--r-- | boost/heap/detail/tree_iterator.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/boost/heap/detail/tree_iterator.hpp b/boost/heap/detail/tree_iterator.hpp index 7a184310dd..83c8d3fb4c 100644 --- a/boost/heap/detail/tree_iterator.hpp +++ b/boost/heap/detail/tree_iterator.hpp @@ -254,6 +254,11 @@ public: return !operator!=(rhs); } + const Node * get_node() const + { + return adaptor_type::base_reference(); + } + private: void increment(void) { @@ -373,6 +378,11 @@ public: { return static_cast<const Node *>(&*it); } + + const Node * get_node() const + { + return get_node(adaptor_type::base_reference()); + } }; |