BloombergLP::bslma::SharedPtrRep::releaseWeakRef

Atomically release a weak reference to the shared object.

Synopsis

Declared in <bslma_sharedptrrep.h>

void
releaseWeakRef();

Description

Atomically release a weak reference to the shared object referred to by this representation, disposing of this representation if all (shared and weak) references to the shared object are released. The behavior is undefined unless 0 < numWeakReferences().