Create a basic_string object.
Declared in <bslstl_string.h>
basic_string(
std::initializer_list<CHAR_TYPE> values,
ALLOCATOR const& basicAllocator = ALLOCATOR());
Create a string and insert (in order) each CHAR_TYPE object in the specified values initializer list. Optionally specify a basicAllocator used to supply memory. If basicAllocator is not specified, then a default-constructed allocator is used.
| Name | Description |
|---|---|
| values | initializer list of characters |
| basicAllocator | allocator used to supply memory |