Any one could explain me what is the meaning of past-the-end. Why we call end() function past-the-end?
past-the-end
end()
Like interval in mathematics, stl uses [begin, end).
[begin, end)
That's why we could write for (auto it = v.begin(); it != v.end(); ++it)
for (auto it = v.begin(); it != v.end(); ++it)