set stl Question 7

Last Updated :
Discuss
Comments

What is the time complexity of clearing all elements from a multiset in the STL?

O(1)

O(n)

O(log n)

O(n log n)

Share your thoughts in the comments