basic_string::append

basic_string& append(const E *s);
basic_string& append(const E *s, size_type n);
basic_string& append(const basic_string& str,
    size_type pos, size_type n);
basic_string& append(const basic_string& str);
basic_string& append(size_type n, E c);
basic_string& append(const_iterator first, const_iterator last);

The member template function appends the operand sequence to the end of the sequence controlled by *this, then returns *this.

In this implementation, if a translator does not support member template functions, the template:

template<class InIt>
    basic_string& append(InIt first, InIt last);

is replaced by:

basic_string& append(const_iterator first, const_iterator last);

See the related sample program.