[newbie] linked list max

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Back
Top