[#BloombergLP-bdlcc-BoundedQueue-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/BoundedQueue.adoc[BoundedQueue]::BoundedQueue :relfileprefix: ../../../ :mrdocs: Create a thread‐aware queue with at least the specified `capacity`. == Synopsis Declared in `<bdlcc_boundedqueue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit BoundedQueue( std::size_t capacity, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. == Parameters [cols="1,4"] |=== | Name| Description | *capacity* | minimum number of elements the queue can hold | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#