Create a queue from the specified container using basicAllocator.
Synopsis
Declared in <bslstl_queue.h>
template<class ALLOCATOR>
queue(
BloombergLP::bslmf::MovableRef<CONTAINER> container,
ALLOCATOR const& basicAllocator)
requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value;
Description
Create a queue whose underlying container has the value of the specified container (on entry) and uses basicAllocator to supply memory. The allocated‐extended move constructor of CONTAINER is used to create the new queue. container is left in a valid but unspecified state. Note that a bslma::Allocator * can be supplied for basicAllocator if the (template parameter) ALLOCATOR is bsl::allocator (the default). Also note that this method assumes that CONTAINER has a move constructor. Also note that if CONTAINER::allocator_type does not exist, this constructor is disabled.
Parameters
Name |
Description |
container |
underlying container whose contents initialize this queue |
basicAllocator |
allocator used to supply memory |
Created with MrDocs