[#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. This function is _not_ thread‐safe and users must ensure that they serialize access to the `SharedPtrRep` object when calling this function. 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`. == Synopsis Declared in `<bslma_sharedptrrep.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void resetCountsRaw( int numSharedReferences, int numWeakReferences); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#