bsl::basic_string::find_first_not_of

find_first_not_of overloads

Synopses

Declared in <bslstl_string.h>

Find the first character not in the specified set.

size_type
find_first_not_of(
    CHAR_TYPE character,
    size_type position = 0) const;
» more...

Find the first character not in the specified set.

size_type
find_first_not_of(
    basic_string const& characterString,
    size_type position = 0) const noexcept;
» more...

Find the first character not in characterString.

size_type
find_first_not_of(
    CHAR_TYPE const* characterString,
    size_type position = 0) const;
» more...

Find the first character not in the specified set.

template<class STRING_VIEW_LIKE_TYPE>
size_type
find_first_not_of(
    STRING_VIEW_LIKE_TYPE const& characterString,
    size_type position = 0) const noexcept(true);
» more...

Find the first character not in the specified set.

size_type
find_first_not_of(
    CHAR_TYPE const* characterString,
    size_type position,
    size_type numChars) const;
» more...

Return Value

  • position of the first non-matching character, or npos
  • index of the first matching character, or npos if none

Parameters

NameDescription
charactercharacter value
positionstarting index
characterStringpointer to characters
numCharsnumber of characters