Create a queue from the iterator range [first, last)].

Synopsis

Declared in <bslstl_queue.h>

template<class INPUT_ITER>
queue(
    INPUT_ITER first,
    INPUT_ITER last);

Description

Create a queue passing the specified first and last to the constructor of the underlying container. Optionally specify an allocator used to supply memory. If allocator is not specified, a default‐constructed object of the (template parameter) type ALLOCATOR is used.

Parameters

Name

Description

first

beginning of the range of elements to insert

last

end of the range of elements to insert

Created with MrDocs