Create an index clerk that dispenses consecutive non‐negative indices.
Synopsis
Declared in <bdlc_indexclerk.h>
explicit
IndexClerk(bslma::Allocator* basicAllocator = 0);
Description
Create a new index clerk that dispenses consecutive non‐negative integers beginning with 0, 1, 2, ...; however, indices returned via putIndex will be reissued before any new ones are created. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
Parameters
Name |
Description |
basicAllocator |
memory allocator; null uses the default |
Created with MrDocs