|
-
June 14th, 2012, 09:13 PM
#4
Re: Why do I have to dereference my vector iterator? What does it mean?
 Originally Posted by Senjai
You answered my question. container<container-type>::iterator is a type of pointer. I had not got to pointers in my book so I stated I was unsure exactly what I was dereferencing.
Actually, this is not generally true. Rather, a pointer is a type of iterator because the concept of an iterator in C++ was generalised from the concept of a pointer. However, a given iterator type could actually be a class type, not a pointer type.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|