Create an in‐place queue of the specified initialLength.

Synopsis

Declared in <bdlc_queue.h>

explicit
Queue(
    unsigned int initialLength,
    bslma::Allocator* basicAllocator = 0);

Description

Create an in‐place queue of the specified initialLength with elements value‐initialized. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless 0 <= initialLength.

Parameters

Name

Description

initialLength

initial number of elements

basicAllocator

memory allocator; null uses the default

Created with MrDocs