[#BloombergLP-bdlcc-SingleConsumerQueueImpl-2constructor-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SingleConsumerQueueImpl.adoc[SingleConsumerQueueImpl]::SingleConsumerQueueImpl
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create a thread&hyphen;aware queue&period;


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

[.small]#xref:BloombergLP/bdlcc/SingleConsumerQueueImpl/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Create a thread&hyphen;aware queue with at least the specified `capacity`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlcc/SingleConsumerQueueImpl/2constructor-06.adoc[SingleConsumerQueueImpl](
    std::size&lowbar;t capacity,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlcc/SingleConsumerQueueImpl/2constructor-06.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| allocator used to supply memory
| *capacity*
| minimum initial capacity of the queue
|===


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