[#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&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
incrementRefs(int incrementAmount = 1);
----

== Description

Atomically increment the number of shared references to the shared object referred to by this representation by the optionally specified `incrementAmount`&period; The behavior is undefined unless `0 &lt; incrementAmount` and `0 &lt; numReferences()`&period;

DEPRECATED&colon; Use `acquireRef` instead&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *incrementAmount*
| Number of shared references to add&period;
|===


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