Namespaces
Variants
Views
Actions

Talk:cpp/container/vector/begin

From cppreference.com

What is the return value of begin() when the vector is empty? Is it an invalid iterator, or the same value that end() would return? This would be useful information.

If the vector is empty begin() == end() --Bazzy 02:42, 23 June 2013 (PDT)