Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52197 - trunk/libs/ptr_container/doc
From: nesotto_at_[hidden]
Date: 2009-04-05 16:07:33


Author: nesotto
Date: 2009-04-05 16:07:31 EDT (Sun, 05 Apr 2009)
New Revision: 52197
URL: http://svn.boost.org/trac/boost/changeset/52197

Log:
fixed wrong example
Text files modified:
   trunk/libs/ptr_container/doc/examples.html | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/ptr_container/doc/examples.html
==============================================================================
--- trunk/libs/ptr_container/doc/examples.html (original)
+++ trunk/libs/ptr_container/doc/examples.html 2009-04-05 16:07:31 EDT (Sun, 05 Apr 2009)
@@ -378,9 +378,9 @@
 
 // ... fill the container somehow
 
-auto_type ptr = deq.release_back(); // remove back element from container and give up ownership
+auto_type ptr = deq.pop_back(); // remove back element from container and give up ownership
 auto_type ptr2 = deq.release( deq.begin() + 2 ); // use an iterator to determine the element to release
-ptr = deq.release_front(); // supported for 'ptr_list' and 'ptr_deque'
+ptr = deq.pop_front(); // supported for 'ptr_list' and 'ptr_deque'
                                 
 deq.push_back( ptr.release() ); // give ownership back to the container
 </pre>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk