O_o"std::vector is an array" - is close enough.
Information which is completely wrong is "close enough"?
o_O
Sure...
A `std::vector<???>` template class really only has the subscript operator in common with native arrays.It would be more correct, and just as understandable to say "std::vector behaves as an array."
The tutorial isn't just providing false information; the tutorial provides false information by way of comparison to a mechanism which hasn't been explained. Knowing "std::vector is an array" wouldn't be useful without having some knowledge of what it means to be "an array" even if were true.
The comparison is completely false and also unnecessary. The tutorial could just as easily be labeled "std::vector" and wording changed to describe exactly what a it means to be a `std::vector<???>` instance without the array nonsense.
Soma