Namespaces
Variants
Views
Actions

std::char_traits::length

From cppreference.com
< cpp‎ | string‎ | char traits
Revision as of 20:57, 31 May 2013 by P12bot (Talk | contribs)

static std::size_t length( const char_type* s );

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.