[#BloombergLP-bdlc-IndexClerk-2constructor-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/IndexClerk.adoc[IndexClerk]::IndexClerk
:relfileprefix: ../../../
:mrdocs:

Create an index clerk that dispenses consecutive non&hyphen;negative indices&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
IndexClerk(xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Create a new index clerk that dispenses consecutive non&hyphen;negative integers beginning with `0, 1, 2, &period;&period;&period;`&semi; however, indices returned via `putIndex` will be reissued before any new ones are created&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| memory allocator&semi; null uses the default
|===


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