SyntaxFix
Write A Post
Hire A Developer
Questions
How do you iterate std::set?
int main(int argc,char *argv[]) { std::set<int> mset; mset.insert(1); mset.insert(2); mset.insert(3); for ( auto it = mset.begin(); it != mset.end(); it++ ) std::cout << *it; }