std::priority_queue<T,Container,Compare>::size (3) - Linux Man Pages

std::priority_queue<T,Container,Compare>::size: std::priority_queue<T,Container,Compare>::size

NAME

std::priority_queue<T,Container,Compare>::size - std::priority_queue<T,Container,Compare>::size

Synopsis


size_type size() const;


Returns the number of elements in the underlying container, that is, c.size().

Parameters


(none)

Return value


The number of elements in the container.

Complexity


Constant.

See also


      checks whether the underlying container is empty
empty (public member function)