Return the position of the last non-matching character.
Declared in <bslstl_string.h>
size_type
find_last_not_of(
CHAR_TYPE const* characterString,
size_type position,
size_type numChars) const;
Return the position of the last occurrence of a character not belonging to the specified characterString of the optionally specified numChars length, if such an occurrence can be found in this string (on or before the optionally specified position if such a position is specified), and return npos otherwise. If numChars is not specified, CHAR_TRAITS::length(characterString) is used.
position of the last non-matching character, or npos
| Name | Description |
|---|---|
| characterString | pointer to characters |
| position | starting index |
| numChars | number of characters |