[#bsl-stack-05-size]
= xref:bsl.adoc[bsl]::xref:bsl/stack-05.adoc[stack]::size
:relfileprefix: ../../
:mrdocs:

Return the number of elements contained in this stack&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CONTAINER::size&lowbar;type
size() const;
----


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