Find the first character not in the specified set.
Declared in <bslstl_string.h>
size_type
find_first_not_of(
CHAR_TYPE character,
size_type position = 0) const;
Return the position of the first occurrence of a character different from the specified character, 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.
position of the first non-matching character, or npos
| Name | Description |
|---|---|
| character | character value |
| position | starting index |