Create a basic_string object.
Synopsis
Declared in <bslstl_string.h>
basic_string(
BloombergLP::bslstl::StringRefData<CHAR_TYPE> const& strRef,
ALLOCATOR const& basicAllocator = ALLOCATOR());
Description
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.
Parameters
Name |
Description |
strRef |
string reference providing characters |
basicAllocator |
allocator used to supply memory |
Created with MrDocs