bsl::basic_string<char>::basic_string

Create a string that containing the characters from the specified range. Optionally specify a basicAllocator used to supply memory. If basicAllocator is not specified, a default-constructed allocator is used. Note that range must meet the requirements of an input range and the values from range must have a type matching or convertible to (template parameter) CHAR_TYPE.

Synopsis

Declared in <bslstl_string.h>

template<class RANGE>
basic_string(
    std::from_range_t,
    RANGE&& range,
    allocator<char> const& basicAllocator = ALLOCATOR());