Iterator is defined in vector namespace and typedef inside vector class.
In easy words,
iterator is nested class inside vector class. It is a public member. Since it is not a data-member but a nested class, so we access it using the " :: " operator. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum