Boost logo

Boost Users :

Subject: Re: [Boost-users] Can I delete/resize a multi_array??
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2011-02-28 11:53:43


Ramon F Herrera wrote:
>
> I recently discovered the multi_array, which was the answer to my prayers:
>
> typedef boost::multi_array<string, 2> ExpressionArrayType;
> ExpressionArrayType exprTable(boost::extents[extreme_row][extreme_col]);
>
> But now I need more functionality, which can be either:
>
> (1) Erase the current "exprTable" and create a new one, with different
> dimensions.

Do you mean different dimensionality? The dimensionality is part of the
type and determined at compile time. Different dimensionality requires a
  different type.

> (2) Resize the current dimensions.

Doesn't this explain resizing?

http://www.boost.org/doc/libs/1_44_0/libs/multi_array/doc/user.html#sec_resize

Jeff


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