C++ Topic : Related to 'Multiset' functionality
0 Answers
C++ Topic : Related to 'Multiset' functionality
| Flag | PURGE
Consider this sample piece of code!
multiset<int> iends;
multiset<int>::iterator et1;
while(et1!=iends.end()){
multiset<int>::iterator te=et1;
et1++;
iends.erase(te);
}
while(et1!=iends.end()){
multiset<int>::iterator te=et1;
iends.erase(te);
et1++;
}
What is the difference between this two pieces of code?
- Psycho December 09, 2012Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.