stl set in C++

Revision en1, by rishabh05, 2017-10-12 22:04:39

set<int>s;
s.erase(s.begin());

I wanted to know whether removing the minimum element in set is a O(logN) or O(1) operation ?
I am quite confused about this situation.
Thanks in advance..

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English rishabh05 2017-10-12 22:04:39 232 Initial revision (published)