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 2 of 7 Topic 45898 of 47924
Post > Topic >>

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

by Christopher <cpisz@[EMAIL PROTECTED] > May 13, 2008 at 11:11 AM

On May 13, 10:34 am, Carter <carterch...@[EMAIL PROTECTED]
> wrote:
> This is probably somewhat of a beginners question but I am unfamiliar
> with alot of aspects of C++. What is the correct way to append
> multiple STL containers together in constant time. Obviously you can
> do this with a linked list but is it possible to do the same thing
> with the standard containers?
>
> Thanks in advance,
>
> Carter.

If they both contain the same data type, then iterate through one
while pu****ng onto the other?
a linked list is a standard STL container btw. All STL containers
provide an iterator which allows access to the underlying data and all
STL container have some kind of insertion method. Depending on the
containers in question, some allow a range of iterators for insertion.
 




 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 Mon Oct 6 17:14:19 CDT 2008.