c++ - Elements in empty unordered_multiset -


it's strange question, if i've deleted elements unordered_multiset , try print elements:

for (std::unordered_multiset<int>::const_iterator i(a.begin()), end(a.end()); != end; ++i)     {    std::cout << "it's here" <<"\n";     std::cout << *i <<"\n";   } 

so, ok, if loop doesn't not work, mean "it's here" wasn't printed? how behaves empty multiset?

if set empty begin() == end() true , loop never entered.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -