Quote:
Originally Posted by Robaggio
One reason it's not called std::array is becuase they store things two different ways. Arrays use contiguous memory while Vectors don't. This isn't always the case, but following convention, it makes sense for things not to be called an array.
Vectors and arrays are apples to oranges. Sure, they do the same things, but they're implemented in vastly different ways which make them completely seperate concepts.
|
Umm, someone correct me if I'm wrong but the whole point of a vector is that they
do store their elements in contiguous memory, which is why I say that it is an array. What makes you think otherwise?