BloombergLP::bdlcc::StripedUnorderedContainerImpl_RehashBitSetGuard

This class defines a proctor type that attempts to set the rehash bit of a state object, and if successful, clears that bit upon destruction.

Synopsis

Declared in <bdlcc_stripedunorderedcontainerimpl.h>

class StripedUnorderedContainerImpl_RehashBitSetGuard;

Member Functions

NameDescription
StripedUnorderedContainerImpl_RehashBitSetGuard [constructor]Create a guard that attempts to set the rehash bit at state_p.
~StripedUnorderedContainerImpl_RehashBitSetGuard [destructor]Unset the rehash bit previously set by this object and destroy this StripedUnorderedContainerImpl_RehashBitSetGuard object.
holdsLock Returns true if the constructor successfully set the rehash bit.