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