bsl::basic_string<char8_t>::basic_string

Create a string that has the same value as the specified strRef string. The resulting string will contain the same sequence of characters as strRef. Optionally specify a basicAllocator used to supply memory. If basicAllocator is not specified, then a default-constructed allocator is used.

Synopsis

Declared in <bslstl_string.h>

basic_string(
    BloombergLP::bslstl::StringRefData<char8_t> const& strRef,
    allocator<char8_t> const& basicAllocator = ALLOCATOR());