
22 Feb
2011
22 Feb
'11
11:11 a.m.
On 02/22/11 05:02, Тимофей Игнатьич wrote: [snip]
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: http://www.boost.org/doc/libs/1_46_0/doc/html/array/reference.html