Namespaces
Variants
Views
Actions

std::char_traits::find

From cppreference.com
< cpp‎ | string‎ | char traits
Revision as of 04:47, 29 March 2013 by Tsimpson (Talk | contribs)

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

<td class="t-dcl-nopad">
static const char_type* find( const char_type* p, std::size_t count, const char_type& a );
</td>

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

Searches for character a within the first count characters of the sequence pointed to by p.

Contents

Parameters

p - pointer to a character string to search
count - the number of characters to analyze
a - the character to search for

Return value

A pointer to the first character in the range specified by [p, p + count) that compares equal to a, or NULL if not found.

Exceptions

(none)

Complexity

Linear.