Boost logo

Boost :

Subject: Re: [boost] Interested in a generic safe n-dimensional matrix/vector library?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2011-02-22 06:11:00


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk