[#bsl-priority_queue-034-size]
= xref:bsl.adoc[bsl]::xref:bsl/priority_queue-034.adoc[priority&lowbar;queue]::size
:relfileprefix: ../../
:mrdocs:

Return the number of elements in this `priority&lowbar;queue` object&period; In effect, performs `return c&period;size()`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;priorityqueue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/priority_queue-034/size_type.adoc[priority&lowbar;queue&lt;VALUE, CONTAINER, COMPARATOR&gt;::size&lowbar;type]
size() const;
----

== Return Value

number of elements in this priority queue


[.small]#Created with https://www.mrdocs.com[MrDocs]#
