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

◆ _M_limit() [2/2]

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string< _CharT, _Traits, _Alloc >::_M_limit ( size_type __pos,
size_type __off ) const
inlineprivatenoexcept

Definition at line 376 of file cow_string.h.

377 {
378 const bool __testoff = __off < this->size() - __pos;
379 return __testoff ? __off : this->size() - __pos;
380 }
constexpr size_type size() const noexcept
Returns the number of characters in the string, not including any null-termination.
Managing sequences of characters and character-like objects.