summaryrefslogtreecommitdiff
path: root/boost/heap/detail/tree_iterator.hpp
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-08-26 08:15:55 -0400
committerAnas Nashif <anas.nashif@intel.com>2013-08-26 08:15:55 -0400
commitbb4dd8289b351fae6b55e303f189127a394a1edd (patch)
tree77c9c35a31b1459dd7988c2448e797d142530c41 /boost/heap/detail/tree_iterator.hpp
parent1a78a62555be32868418fe52f8e330c9d0f95d5a (diff)
downloadboost-bb4dd8289b351fae6b55e303f189127a394a1edd.tar.gz
boost-bb4dd8289b351fae6b55e303f189127a394a1edd.tar.bz2
boost-bb4dd8289b351fae6b55e303f189127a394a1edd.zip
Imported Upstream version 1.51.0upstream/1.51.0
Diffstat (limited to 'boost/heap/detail/tree_iterator.hpp')
-rw-r--r--boost/heap/detail/tree_iterator.hpp10
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());
+ }
};