When I learned about the Vector data type, it was described to me as a "carrier class". Having a biology background I thought of a mosquito, as Redlemon explained.
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.
|