Namespaces
Variants
Views
Actions

std::char_traits::length

From cppreference.com
< cpp‎ | string‎ | char traits
Revision as of 23:42, 24 February 2013 by 2hertz (Talk | contribs)

Template:ddcl list begin <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td class="t-dcl-nopad">
static std::size_t length( const char_type* s );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

Returns the length of the character sequence pointed to by s, that is, the position of the terminating null character (Char()).

Contents

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.