Quick Q: Why has the std::vector::resize signature been changed in C++11? -- StackOverflow

Quick A: See Annex C (Compatibility).

Why has the std::vector::resize signature been changed in C++11?

What are the reasons behind the change in std::vector::resize from the pre-C++11:

void resize( size_type count, T value = T() );

to the compatible C++11 form:

void resize( size_type count );
void resize( size_type count, const value_type& value);

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.