Saturday, 17 August 2013

Default initialization of std::array?

Default initialization of std::array?

With standard C-array the syntax T x[N]; does not default-initialize the
elements of the array. With C++11 std::array, do I have the guarantee that
the syntax std::array<T, N> x; will default-initialize all the elements of
the array ?

No comments:

Post a Comment