[#bsl-basic_string-0fb-2constructor-03] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic_string<char>]::basic_string :relfileprefix: ../../ :mrdocs: Create a string that has the same value as the substring of the specified `numChars` length starting at the specified `position` in the specified `original` string. Optionally specify the `basicAllocator` used to supply memory. If `basicAllocator` is not specified, a default‐constructed allocator is used. Throw `out_of_range` if `position > original.length()`. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- basic_string( xref:bsl/basic_string-0faf.adoc[basic_string<char>] const& original, xref:bsl/basic_string-0fb/size_type.adoc[size_type] position, xref:bsl/allocator-0df.adoc[allocator<char>] const& basicAllocator = ALLOCATOR()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#