Standard C++ Library Reference ISO/IEC (VERSION3)

basic_string::begin
const_iterator begin() const;
iterator begin();
The member functions each return a random-access iterator that points at the first element of the
sequence (or just beyond the end of an empty sequence).
basic_string::c_str
const value_type *c_str() const;
The member function returns a pointer to a non-modifiable C string constructed by adding a
terminating null element (value_type()) to the controlled sequence. Calling any non-const
member function for *this can invalidate the pointer.
basic_string::capacity
size_type capacity() const;
The member function returns the storage currently allocated to hold the controlled sequence, a
value at least as large as size().
basic_string::clear
void clear();
The member function calls erase( begin(), end()).
basic_string::compare
int compare(const basic_string& right) const;
int compare(size_type off, size_type n0,
const basic_string& right);
int compare(size_type off, size_type n0,
const basic_string& right, size_type roff, size_type count);
int compare(const value_type *ptr) const;
int compare(size_type off, size_type n0,
const value_type *ptr) const;
int compare(size_type off, size_type n0,
const value_type *ptr, size_type off) const;
The member functions each compare up to n0 elements of the controlled sequence beginning with
position off, or the entire controlled sequence if these arguments are not supplied, to the operand
sequence. Each function returns:
a negative value if the first differing element in the controlled sequence compares less than
the corresponding element in the operand sequence (as determined by