basic_string::end

const_iterator end() const;
iterator end();

Each member function returns a random-access iterator that points just beyond the end of the sequence.