Create a basic_string object.
Synopsis
Declared in <bslstl_string.h>
basic_string(
std::initializer_list<CHAR_TYPE> values,
ALLOCATOR const& basicAllocator = ALLOCATOR());
Description
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.
Parameters
Name |
Description |
values |
initializer list of characters |
basicAllocator |
allocator used to supply memory |
Created with MrDocs