string::end

Return an iterator to the end.

Synopsis

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

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

Description

The returned iterator only acts as a sentinel. Dereferencing it results in undefined behavior.

Complexity

Constant.

Exception Safety

No-throw guarantee.