|
Boost Users : |
From: Dr Johann A. Briffa (j.briffa_at_[hidden])
Date: 2008-08-21 04:44:30
gast128 wrote:
> Dear all,
>
> from the documentation I read that if a multi_array is reshaped new elements
> are default constructed:
>
> "Resizing an Array
> The boost::multi_array class provides an element-preserving resize operation.
> ...Any new elements in the array are default constructed..."
>
> It is thus not possible providing a default fill element?
>
The default fill element is the default value of the type. For example,
if you have a multi_array of doubles, on array construction (or resize)
all new elements will be 0.0. You cannot change this value without
changing the default value of the underlying type.
Johann
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