
On 2/28/2011 10:53 AM, Jeff Flinn wrote:
Ramon F Herrera wrote:
I recently discovered the multi_array, which was the answer to my prayers:
typedef boost::multi_array
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_resi...
Jeff
Thanks, Jeff!
The snippet below is along the lines of what I am trying to accomplish.
I read in TFM :-) that there is a destroy method (?), but I have never
need those (until now).
-Ramon
--------------
#include <iostream>
#include <string>
#include