KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a set of type set<int> and I want to get an iterator to someplace that is not the beginning. I am doing the following: set<int>::iterator it = myset.begin() + 5; I am curious why this is not working and what is the correct way to get an iterator to where I want it.
Tags (comma-separated)
Save Edits
Cancel