
Tue, 22 Feb 2011 05:11:00 -0600 Larry Evans
Sorry, i guess i want. clear enough. vector template is defined like this:
template <class T, size_t N> class vector;
Where T is arbitrary type (supposedly arithmetic, or it woult be meaningless otherwise) and N is an amount of components in a vector (aka vector dimension or size) and not an amount of dimensions in an array (vector is a one dimensional array of elements). So vector is statically sized, and parameters passed to constructor are values to be stored in it and not sizes of corresponding array dimensions.
This sounds like boost::array:
except boost::array is a generic container, whereas i suggest an algebraic vector and matrix with related operations (blame those who named standart array class std::vector D:)