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
Post a Comment