Standard C++ Library Reference ISO/IEC (VERSION3)
In this implementation, if a translator does not support member template functions, the template:
template<class InIt>
basic_string& replace(iterator first, iterator last,
InIt first2, InIt last2);
is replaced by:
basic_string& replace(iterator first, iterator last,
const_pointer first2, const_pointer last2);
basic_string::reserve
void reserve(size_type count = 0);
The member function ensures that capacity() henceforth returns at least count.
basic_string::resize
void resize(size_type newsize, value_type ch = value_type());
The member function ensures that size() henceforth returns newsize. If it must make the
controlled sequence longer, it appends elements with value ch. To make the controlled sequence
shorter, the member function effectively calls erase(begin() + newsize, end()).
basic_string::reverse_iterator
typedef reverse_iterator<iterator>
reverse_iterator;
The type describes an object that can serve as a reverse iterator for the controlled sequence.
basic_string::rfind
size_type rfind(value_type ch, size_type off = npos) const;
size_type rfind(const value_type *ptr,
size_type off = npos) const;
size_type rfind(const value_type *ptr,
size_type off, size_type count = npos) const;
size_type rfind(const basic_string& right,
size_type off = npos) const;
The member functions each find the last (highest beginning position) subsequence in the
controlled sequence, beginning on or before position off, that matches the operand sequence
specified by the remaining operands. If it succeeds, the function returns the position where the
matching subsequence begins. Otherwise, it returns npos.