string::begin

Return an iterator to the beginning.

Synopsis

string::iterator
begin() noexcept; (1)

string::const_iterator
begin() const noexcept; (2)

Description

If the container is empty, end() is returned.

Complexity

Constant.

Exception Safety

No-throw guarantee.