Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-06-29 12:58:52


> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
> Baranowski, Daniel
> Sent: Wednesday, June 28, 2006 7:55 PM
> To: boost-users_at_[hidden]
> Subject: [Boost-users] multi_array: creating a view to a
> single element
>
[snip]
> Basically, I have a 2 Dimensional array and I
> would like to be able to access the center of that array
> using a variable that maps to some index (for example,
> element[3][3] in a 7x7 array).
[snip]

Would T & center = element[3][3] be satisfactory?

I don't think multiarray supports any type of reallocation after
construction, so it should be ok.

Sohail


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net