Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Re: appending/j...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 7 Topic 45898 of 47561
Post > Topic >>

Re: appending/joining STL::deque/list containers in constant time

by Jerry Coffin <jcoffin@[EMAIL PROTECTED] > May 14, 2008 at 05:43 PM

In article <971cc250-794e-412a-b1fa-
9c1487e17ceb@[EMAIL PROTECTED]
>, cartercheng@[EMAIL PROTECTED]
 
says...

[ ... ]

> I understand the objection raised too- but it seems a bit
> unfortunate that given we have library of linked and doubly linked
> lists that you cannot perform shallow merging in cases where the
> containers being merged from are being discarded.

That's exactly what list::splice does -- a destructive movement of 
elements from one list to another in constant time.

-- 
    Later,
    Jerry.

The universe is a figment of its own imagination.
 




 7 Posts in Topic:
appending/joining STL::deque/list containers in constant time
Carter <cartercheng@[E  2008-05-13 08:34:50 
Re: appending/joining STL::deque/list containers in constant tim
Christopher <cpisz@[EM  2008-05-13 11:11:10 
Re: appending/joining STL::deque/list containers in constant tim
Carter <cartercheng@[E  2008-05-13 12:41:18 
Re: appending/joining STL::deque/list containers in constant tim
Jerry Coffin <jcoffin@  2008-05-13 15:37:04 
Re: appending/joining STL::deque/list containers in constant tim
Christopher <cpisz@[EM  2008-05-13 15:49:14 
Re: appending/joining STL::deque/list containers in constant tim
Carter <cartercheng@[E  2008-05-14 14:37:06 
Re: appending/joining STL::deque/list containers in constant tim
Jerry Coffin <jcoffin@  2008-05-14 17:43:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 4:07:16 CDT 2008.