[#BloombergLP-bslma-SharedPtrRep-incrementRefs] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SharedPtrRep.adoc[SharedPtrRep]::incrementRefs :relfileprefix: ../../../ :mrdocs: Atomically increment the number of shared references to the shared object referred to by this representation by the optionally specified `incrementAmount`. The behavior is undefined unless `0 < incrementAmount` and `0 < numReferences()`. == Synopsis Declared in `<bslma_sharedptrrep.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void incrementRefs(int incrementAmount = 1); ---- == Description DEPRECATED: Use `acquireRef` instead. [.small]#Created with https://www.mrdocs.com[MrDocs]#