Find the first character belonging to the specified set.
Synopsis
Declared in <bslstl_string.h>
size_type
find_first_of(
basic_string const& characterString,
size_type position = 0) const noexcept;
Description
Return the position of the first occurrence of a character belonging to the specified characterString, if such an occurrence can be found in this string (on or after the optionally specified position if such a position is specified), and return npos otherwise.
Return Value
position of the first matching character, or npos
Parameters
Name |
Description |
characterString |
pointer to characters |
position |
starting index |
Created with MrDocs