![]() |
![]()
| ![]() |
![]()
NAMEstd::char_traits::length - std::char_traits::length Synopsis static std::size_t length( const char_type* s ); (until
C++17)
Parameterss - pointer to a character sequence to return length of Return valueThe length of character sequence pointed to by s. ExceptionsThrows nothing. ComplexityLinear. Example// Run this code
Output: "foo" has length = 3
|