Ash said:
Does the C++ vector template class use pointer-based
link lists?
Could I get a link explaining how it works, regardless
of what it uses?
From memory, one of the requirements of the vector template
specificed by the standard is O(1) access to all elements.
This cannot be guaranteed by a linked list implementation.
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo (e-mail address removed) (Yes it's valid)
+-----------------------------------------------------------+
"There are two ways of constructing a software design. One way is
to make it so simple that there are obviously no deficiencies
and the other is to make it so complicated that there are no
obvious deficiencies." -- C A R Hoare