[#bsl-basic_string-0fb-2constructor-02] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic_string<char>]::basic_string :relfileprefix: ../../ :mrdocs: Create a string that containing the characters from the specified `range`. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is not specified, a default‐constructed 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) `CHAR_TYPE`. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class RANGE> basic_string( std::from_range_t, RANGE&& range, xref:bsl/allocator-0df.adoc[allocator<char>] const& basicAllocator = ALLOCATOR()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#