[#BloombergLP-bdlcc-MultipriorityQueue-2constructor-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/MultipriorityQueue.adoc[MultipriorityQueue]::MultipriorityQueue
:relfileprefix: ../../../
:mrdocs:

Create a multipriority queue supporting the specified number of priorities&period;

== Synopsis

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

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

== Description

The specified `numPriorities` is the number of distinct priorities supported by the multipriority queue&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless `1 &lt;&equals; numPriorities &lt;&equals; 32`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numPriorities*
| number of distinct priorities supported
| *basicAllocator*
| allocator used to supply memory
|===


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