queue stl Question 2

Last Updated :
Discuss
Comments

What is the complexity of the size() member function of the queue STL in C++?

O(1)

O(n)

O(log n)

O(n log n)

Share your thoughts in the comments