Does boost::multi_array default initialize its contents?

60 views Asked by At

std::vector<T> foo(100) initialises every element with the default value for T. Does boost::multi_array<T, 2> foo(boost::extents[10][10]) do the same?

1

There are 1 answers

1
Timmmm On

It does, using std::allocator::construct() by default.