Create a thread-aware queue with at least the specified capacity.
Declared in <bdlcc_boundedqueue.h>
explicit
BoundedQueue(
std::size_t capacity,
bslma::Allocator* basicAllocator = 0);
Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
| Name | Description |
|---|---|
| capacity | minimum number of elements the queue can hold |
| basicAllocator | memory allocator; null uses the default |