[#bsl-basic_string-0e-2constructor-03b] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0e.adoc[basic_string<wchar_t>]::basic_string :relfileprefix: ../../ :mrdocs: Create a string from the characters in the range starting at the specified `first` iterator and ending right before the specified `last` iterator of the (template parameter) type `INPUT_ITER`. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is not specified, a default‐constructed allocator is used. The behavior is undefined unless `first` and `last` refer to a sequence of valid values where `first` is at a position at or before `last`. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class INPUT_ITER> basic_string( INPUT_ITER first, INPUT_ITER last, xref:bsl/allocator-0df.adoc[allocator<wchar_t>] const& basicAllocator = ALLOCATOR()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#