fixed wrong example
[SVN r52197]
This commit is contained in:
parent
2a8fc6e6f8
commit
0746992050
@ -378,9 +378,9 @@ typedef ptr_deque<T>::auto_type auto_type;
|
|||||||
|
|
||||||
// ... fill the container somehow
|
// ... 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
|
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
|
deq.push_back( ptr.release() ); // give ownership back to the container
|
||||||
</pre>
|
</pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user