[newbie] linked list max

G

Guest

Hi,

in my program I use the <list> template class to create my own linked list. Now, I need to add several thousand structures to that list, but if I do so, the list does only contain 2 items when I'm finished. So, is there a max value for the number of items in the linked list?

Thanks a lot
mosquitooth
 
D

David Olsen

mosquitooth said:
in my program I use the <list> template class to create my own linked
list. Now, I need to add several thousand structures to that list,
but if I do so, the list does only contain 2 items when I'm finished.
So, is there a max value for the number of items in the linked list?

The only practical limit to the size of std::list<T> is available
memory. Adding several thousand items to a list should not be a problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top