string::end
Return an iterator to the end.
Synopsis
string::iterator
end() noexcept; (1)
string::const_iterator
end() const noexcept; (2)
Description
Returns an iterator to the character following the last character of the string. This character acts as a placeholder, attempting to access it results in undefined behavior.
Complexity
Constant.
Exception Safety
No-throw guarantee.