I have seen the code
vector<char> v(10);
vector<char>::iterator p;
here what is the need of vector<char>::.Does it mean iterator is a class inside vector namespace?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not quite, is a type inside
vectorclass template. The iterator not only depends on the type of container (here avector), but on the type of element iterated over as well (here achar).