Boost logo

Boost Users :

Subject: [Boost-users] Can I delete/resize a multi_array??
From: Ramon F Herrera (ramon_at_[hidden])
Date: 2011-02-28 11:35:20


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.

(2) Resize the current dimensions.

I have tried things like:

~exprTable;
~exprTable();
delete &exprTable;

I have RTFM and Googled but still could use some guidance....

TIA,

-RFH


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