Standard C++ Library Reference ISO/IEC (VERSION3)
basic_string::reference
typedef typename allocator_type::reference
reference;
The type is a synonym for allocator_type::reference.
basic_string::rend
const_reverse_iterator rend() const;
reverse_iterator rend();
The member functions each return a reverse iterator that points at the first element of the sequence
(or just beyond the end of an empty sequence). Hence, the function designates the end of the
reverse sequence.
basic_string::replace
basic_string& replace(size_type off, size_type n0,
const value_type *ptr);
basic_string& replace(size_type off, size_type n0,
const value_type *ptr, size_type count);
basic_string& replace(size_type off, size_type n0,
const basic_string& right);
basic_string& replace(size_type off, size_type n0,
const basic_string& right, size_type roff, size_type count);
basic_string& replace(size_type off, size_type n0,
size_type count, value_type ch);
basic_string& replace(iterator first, iterator last,
const value_type *ptr);
basic_string& replace(iterator first, iterator last,
const value_type *ptr, size_type count);
basic_string& replace(iterator first, iterator last,
const basic_string& right);
basic_string& replace(iterator first, iterator last,
size_type count, value_type ch);
template<class InIt>
basic_string&
replace(iterator first, iterator last,
InIt first2, InIt last2);
The member functions each replace up to n0 elements of the controlled sequence beginning with
position off, or the elements of the controlled sequence beginning with the one pointed to by
first, up to but not including last. The replacement is the operand sequence specified by the
remaining operands. The function then returns *this. If InIt is an integer type in the template
member function, the operand sequence first2, last2 behaves the same as
(size_type)first2, (value_type)last2.