Go Back  DVD Talk Forum > General Discussions > Tech Talk
Reload this Page >

C++ tech question with STL

Tech Talk Discuss PC Hardware, Software, Internet and Other Technology

C++ tech question with STL

Old 06-20-06, 01:06 PM
  #1  
DVD Talk Special Edition
Thread Starter
 
Join Date: Jan 2001
Location: New York, N.Y.
Posts: 1,710
Likes: 0
Received 0 Likes on 0 Posts
C++ tech question with STL

What is the difference between a vector and a linked list.
When would you use one over the other?
I told him a linked list is good if you want to remove an item in the middle of the list. The vector is not as efficient in removing an item in the middle.
Am I correct?
Also, mentioned that a linked list is efficient at removing a contigous list of nodes.
Are there any other design decisions between the 2?

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service - Do Not Sell My Personal Information

Copyright 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.