summaryrefslogtreecommitdiff
path: root/boost/heap/heap_concepts.hpp
diff options
context:
space:
mode:
authorChanho Park <chanho61.park@samsung.com>2014-12-11 18:55:56 +0900
committerChanho Park <chanho61.park@samsung.com>2014-12-11 18:55:56 +0900
commit08c1e93fa36a49f49325a07fe91ff92c964c2b6c (patch)
tree7a7053ceb8874b28ec4b868d4c49b500008a102e /boost/heap/heap_concepts.hpp
parentbb4dd8289b351fae6b55e303f189127a394a1edd (diff)
downloadboost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.gz
boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.bz2
boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.zip
Imported Upstream version 1.57.0upstream/1.57.0
Diffstat (limited to 'boost/heap/heap_concepts.hpp')
-rw-r--r--boost/heap/heap_concepts.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/boost/heap/heap_concepts.hpp b/boost/heap/heap_concepts.hpp
index f7a6d1bcd7..62c16049df 100644
--- a/boost/heap/heap_concepts.hpp
+++ b/boost/heap/heap_concepts.hpp
@@ -85,7 +85,8 @@ struct MutablePriorityQueue:
BOOST_CONCEPT_ASSERT((boost::Assignable<typename MutablePriorityQueue::handle_type>));
typename MutablePriorityQueue::value_type v;
- typename MutablePriorityQueue::handle_type h = c.push(v);
+ typename MutablePriorityQueue::handle_type h = c.push(v);
+ typename MutablePriorityQueue::handle_type h2 = c.push(v);
c.update(h, v);
c.increase(h, v);
c.decrease(h, v);
@@ -93,9 +94,15 @@ struct MutablePriorityQueue:
c.update(h);
c.increase(h);
c.decrease(h);
+
+ equal = (h == h2);
+ not_equal = (h != h2);
+
+ h2 = h;
}
C c;
+ bool equal, not_equal;
};
}}