Micah said:
The term 'vector' has been used for quite some time
(long before C++) in Computer Science
to refer to what is also frequently referred to as an array.
No. A vector is an array of *numbers*.
You will find it in many good, older CS textbooks.
Please cite and quote one of these older CS textbooks.
I have no idea where this usage originated
Probably with Fortran which, until Fortran 90,
had no notion of vectors so Fortran programmers
were forced to *improvise* with arrays of numbers
and *pretend* that they were vectors.
Until Fortran 90 and the introduction of derived types,
arrays were always arrays of numbers (or characters).
Note that vector arithmetic operations *are* defined
on Fortran 90/95/00 arrays of numbers
so they really are vectors now but Fortran programmers
still use the term "array" to describe them.
but there is definitely a precedent
and it seems quite appropriate, given that
the term "array" is already in use for something else.
Check out
The American Heritage Dictionary of the English Language
http://www.bartleby.com/61/
array
5. Computer Science An arrangement of memory elements
in one or more planes.
vector
1. Mathematics a. A quantity, such as velocity,
completely specified by a magnitude and a direction.
b. A one-dimensional array. c. An element of a vector space.
In computer science, an array is
an array of memory elements of *any* type.
A vector, on the other hand, is and array of numbers --
a numerical quantity upon which the operations
of vector arithmetic are defined.
This definition does *not* apply
to the standard vector class template.
The word "array" is *not* a reserved keyword
in the C++ computer programming language
or in the standard C++ library.
Also, the term "sequence" is used in C++ to refer to a
group of containers that include the list, queue, deque, and
other classes. "Sequence" would be far to general to be an
appropriate term for this beast, at any rate.
I don't think sequence is a good name
for any standard C++ container class [template].
Sometimes programmers choose names for new types unwisely.
In the case of the standard vector class template,
this was an unfortunate mistake that we are stuck with.
Don't look for any wisdom in this choice
because there simply isn't any.