Atomically increment the number of shared references.
Synopsis
Declared in <bslma_sharedptrrep.h>
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. The behavior is undefined unless 0 < incrementAmount and 0 < numReferences().
DEPRECATED: Use acquireRef instead.
Parameters
Name |
Description |
incrementAmount |
Number of shared references to add. |
Created with MrDocs