libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ cend() [1/2]

template<typename _CharT, typename _Traits, typename _Alloc>
const_iterator std::basic_string< _CharT, _Traits, _Alloc >::cend ( ) const
inlinenodiscardconstexprnoexcept

Returns a read-only (constant) iterator that points one past the last character in the string.

Definition at line 1157 of file basic_string.h.

1158 { return const_iterator(this->_M_data() + this->size()); }
constexpr size_type size() const noexcept
Returns the number of characters in the string, not including any null-termination.
constexpr pointer _M_data() const
__gnu_cxx::__normal_iterator< const_pointer, basic_string > const_iterator