[#memusage-stl_shared_counter]
= xref:memusage.adoc[memusage]::stl&lowbar;shared&lowbar;counter
:relfileprefix: ../
:mrdocs:

Layout model of the control block shared by shared&lowbar;ptr&sol;weak&lowbar;ptr, used for sizing&period;

== Synopsis

Declared in `&lt;memusage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct stl&lowbar;shared&lowbar;counter;
----

== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:memusage/stl_shared_counter/class_type.adoc[`class&lowbar;type`] 
| Pointer to the type&sol;vtable information of the control block&period;
| xref:memusage/stl_shared_counter/use_count.adoc[`use&lowbar;count`] 
| Number of shared&lowbar;ptr references&period;
| xref:memusage/stl_shared_counter/weak_count.adoc[`weak&lowbar;count`] 
| Number of weak&lowbar;ptr references&period;
|===



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