[#BloombergLP-bdlcc-StripedUnorderedContainerImpl_RehashBitSetGuard]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::StripedUnorderedContainerImpl&lowbar;RehashBitSetGuard
:relfileprefix: ../../
:mrdocs:

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

== Synopsis

Declared in `&lt;bdlcc&lowbar;stripedunorderedcontainerimpl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class StripedUnorderedContainerImpl&lowbar;RehashBitSetGuard;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_RehashBitSetGuard/2constructor.adoc[`StripedUnorderedContainerImpl&lowbar;RehashBitSetGuard`]         [.small]#[constructor]#
| Create a `StripedUnorderedContainerImpl&lowbar;RehashBitSetGuard` object that attempts to set the rehash bit of the object pointed to by the specified `state&lowbar;p` argument&period; If successful, the rehash bit will be cleared during destruction&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_RehashBitSetGuard/2destructor.adoc[`&#126;StripedUnorderedContainerImpl&lowbar;RehashBitSetGuard`] [.small]#[destructor]#
| Unset the rehash bit previously set by this object and destroy this `StripedUnorderedContainerImpl&lowbar;RehashBitSetGuard` object&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_RehashBitSetGuard/holdsLock.adoc[`holdsLock`] 
| Returns true if the constructor successfully set the rehash bit&period;
|===



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