Create a string from a null‐terminated character string.
Synopsis
Declared in <bslstl_string.h>
template<>
requires bsl::IsStdAllocator<ALLOCATOR>::value
basic_string(
CHAR_TYPE const* characterString,
ALLOCATOR const& basicAllocator = ALLOCATOR());
Description
Create a string having the same value as the specified null‐terminated characterString (of length CHAR_TRAITS::length(characterString)). Optionally specify a basicAllocator used to supply memory. If basicAllocator is not specified, a default‐constructed allocator is used.
Parameters
Name |
Description |
characterString |
null‐terminated string used to initialize this string |
basicAllocator |
allocator used to supply memory |
Created with MrDocs