An iterator to the beginning of the string.
If the string object is const-qualified, the function returns a const_iterator. Otherwise, it returns an iterator.
Member types iterator and const_iterator are random access iterator types (pointing to a character and to a const character, respectively).
Example