Create a queue from the elements of the specified range.
Synopsis
Declared in <bslstl_queue.h>
template<class t_RANGE>
queue(
std::from_range_t unused,
t_RANGE&& range);
Description
Create a queue from the elements of the specified range. Optionally specify an allocator used to supply memory. If allocator is not specified, a default‐constructed object of the (template parameter) type t_ALLOCATOR is used. Note that range must meet the requirements of an input range and the values from range must have a type matching or convertible to (template parameter) VALUE.
Parameters
Name |
Description |
unused |
tag selecting the from‐range constructor overload |
range |
input range of elements to insert |
Created with MrDocs