Assign characters from a range to this string.

Synopsis

Declared in <bslstl_string.h>

template<class RANGE>
basic_string&
assign_range(RANGE&& range);

Description

Assign to this string the characters from the specified range. Return a reference providing modifiable access to this string. 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.

Return Value

reference providing modifiable access to this string

Parameters

Name

Description

range

input range of characters

Created with MrDocs