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

This class holds locks on an array of locks, established in sequential order, and unlocks them upon destruction in the RAII pattern&period;

== Synopsis

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

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

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard/2constructor.adoc[`StripedUnorderedContainerImpl&lowbar;ArrayOfLocksWriteGuard`]         [.small]#[constructor]#
| Create a guard object &apos;StripedUnorderedContainerImpl&lowbar;ArrayOfLocksWriteGuard&apos; to lock and unlock elements in an array beginning with the lock pointed to by the specified &apos;firstLock&apos;&period; Note that this lock is _not_ locked on construction&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard/2destructor.adoc[`&#126;StripedUnorderedContainerImpl&lowbar;ArrayOfLocksWriteGuard`] [.small]#[destructor]#
| Release all guarded locks and destroy this object&period;
| xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_ArrayOfLocksWriteGuard/lock.adoc[`lock`] 
| Lock the specified `&ast;lock&lowbar;p` and add it to the collection of locks to be unlocked upon destruction of this object&period; The behavior is undefined unless &apos;lock&lowbar;p&apos; is adjacent to the previously locked lock, or is the same lock provided to the constructor if this is the first call to `lock` on this object&period;
|===



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