[#bsl-list-054-2constructor-04a] = xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::list :relfileprefix: ../../ :mrdocs: Create a list from the elements of the specified `range`. == Synopsis Declared in `<bslstl_list.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_RANGE> list( std::from_range_t tag, t_RANGE&& range, ALLOCATOR const& basicAllocator = ALLOCATOR()); ---- == Description Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is not specified, a default‐constructed object of the (template parameter) type `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 [cols="1,4"] |=== | Name| Description | *tag* | disambiguation tag for the range constructor | *range* | range of values to insert | *basicAllocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#