From 64ebe858f04e6d5ef7f36b76968668aeabfd2750 Mon Sep 17 00:00:00 2001 From: khizmax Date: Tue, 3 Mar 2015 23:46:11 +0300 Subject: [PATCH] Fix doc --- cds/intrusive/mspriority_queue.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cds/intrusive/mspriority_queue.h b/cds/intrusive/mspriority_queue.h index 831ee633..8c7f4d94 100644 --- a/cds/intrusive/mspriority_queue.h +++ b/cds/intrusive/mspriority_queue.h @@ -233,10 +233,10 @@ namespace cds { namespace intrusive { /** If the priority queue is full, the function returns \p false, no item has been added. - Otherwise, the function inserts the copy of \p val into the heap + Otherwise, the function inserts the pointer to \p val into the heap and returns \p true. - - The function use copy constructor to create new heap item from \p val. + + The function does not make a copy of \p val. */ bool push( value_type& val ) { @@ -272,8 +272,6 @@ namespace cds { namespace intrusive { /** If the priority queue is empty, the function returns \p nullptr. Otherwise, it returns the item extracted. - - The item returned may be disposed immediately. */ value_type * pop() { -- 2.34.1