bsl::basic_string::basic_string

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.

Synopsis

Declared in <bslstl_string.h>

basic_string(
    std::initializer_list<CHAR_TYPE> values,
    ALLOCATOR const& basicAllocator = ALLOCATOR());