Standard C++ Library Reference ISO/IEC (VERSION3)
basic_string::data
const value_type *data() const;
The member function returns a pointer to the first element of the sequence (or, for an empty
sequence, a non-null pointer that cannot be dereferenced).
basic_string::difference_type
typedef T3 difference_type;
The signed integer type describes an object that can represent the difference between the addresses
of any two elements in the controlled sequence. It is described here as a synonym for the
implementation-defined type T3.
basic_string::empty
bool empty() const;
The member function returns true for an empty controlled sequence.
basic_string::end
const_iterator end() const;
iterator end();
The member functions each return a random-access iterator that points just beyond the end of the
sequence.
basic_string::erase
iterator erase(iterator first, iterator last);
iterator erase(iterator where);
basic_string& erase(size_type off = 0,
size_type count = npos);
The first member function removes the elements of the controlled sequence in the range
[first, last). The second member function removes the element of the controlled sequence
pointed to by where. Both return an iterator that designates the first element remaining beyond
any elements removed, or end() if no such element exists.
The third member function removes up to count elements of the controlled sequence beginning
at position off, then returns *this.