Why does the set iterator not have get() as a function?

I have a int set iterator:

set<int>::iterator itr;

Apparently, itr.get() is not a function for set iterators.

How, then, should I retrieve the value that a set iterator is pointing to?
As with all iterators, by dereferencing: int value = *itr;
Thank you! That makes sense.
Topic archived. No new replies allowed.