std::char_traits<CharT>::length (3) - Linux Manuals
std::char_traits<CharT>::length: std::char_traits<CharT>::length
NAME
std::char_traits<CharT>::length - std::char_traits<CharT>::length
Synopsis
static std::size_t length( const char_type* s ); (until C++17)
static constexpr std::size_t length( const char_type* s ); (since C++17)
Returns the length of the character sequence pointed to by s, that is, the position of the terminating null character (CharT()).
Parameters
s - pointer to a character sequence to return length of
Return value
The length of character sequence pointed to by s.
Exceptions
(none)
Complexity
Linear.
Example
// Run this code
Output: