Namespaces
Variants
Views
Actions

Talk:cpp/container/vector/vector

From cppreference.com

I think that the time complexity of ctor (4) is wrong. During construction, a emplace_back() or push_back() will be called while iterating. 175.156.147.173 19:55, 13 December 2013 (PST)

The standard requires exactly N constructors of T and no reallocations for this constructor (given iterators that are at least ForwardIterators). You are right in that this page is missing the special case for InputIterators that aren't ForwardIterators. --Cubbi (talk) 00:25, 14 December 2013 (PST)