Atomically increment the number of shared references.
Declared in <bslma_sharedptrrep.h>
void
incrementRefs(int incrementAmount = 1);
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().
DEPRECATED: Use acquireRef instead.
| Name | Description |
|---|---|
| incrementAmount | Number of shared references to add. |