[#BloombergLP-bdlc-IndexClerk-isInUse]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/IndexClerk.adoc[IndexClerk]::isInUse
:relfileprefix: ../../../
:mrdocs:

Return `true` if the specified `index` is currently in use&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;indexclerk&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
isInUse(int index) const;
----

== Description

Return `true` if the specified `index` is currently in use, and `false` otherwise&period; The behavior is undefined unless `0 &lt;&equals; index` and `index &lt; nextNewIndex()`&period; Note that this method runs in time proportional to the number of decommissioned indices&period;

== Return Value

`true` if `index` is in use, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| index to test for current use
|===


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