[#BloombergLP-bslma-SharedPtrRep-resetCountsRaw]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SharedPtrRep.adoc[SharedPtrRep]::resetCountsRaw
:relfileprefix: ../../../
:mrdocs:

Reset the number of shared references and the number of weak references stored by this representation to the specified `numSharedReferences` and `numWeakReferences` respectively&period; This function is _not_ thread&hyphen;safe and users must ensure that they serialize access to the `SharedPtrRep` object when calling this function&period; Note that this function updates the counts, but does not dispose of the representation or the object irrespective of the values of `numSharedReferences` and `numWeakReferences`&period;

== Synopsis

Declared in `&lt;bslma&lowbar;sharedptrrep&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
resetCountsRaw(
    int numSharedReferences,
    int numWeakReferences);
----


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