[#BloombergLP-bdlcc-SingleProducerQueueImpl-2constructor-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SingleProducerQueueImpl.adoc[SingleProducerQueueImpl]::SingleProducerQueueImpl :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlcc_singleproducerqueueimpl.h>` Create a thread‐aware queue. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlcc/SingleProducerQueueImpl/2constructor-07.adoc[SingleProducerQueueImpl](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlcc/SingleProducerQueueImpl/2constructor-07.adoc[_» more..._]# Create a thread‐aware queue with, at least, the specified `capacity`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlcc/SingleProducerQueueImpl/2constructor-03.adoc[SingleProducerQueueImpl]( std::size_t capacity, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlcc/SingleProducerQueueImpl/2constructor-03.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | memory allocator; null uses the default | *capacity* | minimum number of elements the queue can hold |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#