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()
Because it doesn't point to the last element of a container, but to somewhere past the last element of a container.
If you dereference end() it results in undefined behaviour.